Formatter has an option to return "" when null is passed as a value. This patch also treats NaN is null. Typically this only happens during loading conditions. (cherry picked from commit 1ba373f3)