[Fix] OneGradient varidates NaN two times.

For efficiency, f(x+h) is validated NaN.