Fix error when checking floats returned true for NaN.