Forgot that NaN has special casing that it needs a custom error message for This reverts commit b6c03a34e7.
b6c03a34e7