Replace the isNaN check which fails for iOS 12.0.1 (#1346)
Replace the isNaN check which fails for iOS 12.0.1 (#1346)

BUG Replaces the `isNaN` check with `val < 1.0 || 0.0 < val || val == 0.0`

tensorflow/tfjs-core,tensorflow/tfjs-core,tensorflow/tfjs,tensorflow/tfjs,tensorflow/tfjs,tensorflow/tfjs-core,tensorflow/tfjs,tensorflow/tfjs,tensorflow/tfjs,tensorflow/tfjs,tensorflow/tfjs-core,tensorflow/tfjs,tensorflow/tfjs-core,tensorflow/tfjs,tensorflow/tfjs-core