Comparing a value against NaN even though no value is equal to NaN
