Map floating-point NaN into null in extra_props.

NaN is now allowed in JS.