Robust Criterion for the Existence of Nonhyperbolic Ergodic Measures