ES6-compliant shim for Number.isNaN - the global isNaN returns false positives.