Corrects isNaN global to coerce to number value. Fixes #652
Merge #653 r=@kevinmehall: Corrects isNaN global to coerce to number value. Fixes #652