Fixed FormatException when nan/-nan is parsed.