Protect against some attempts to parse floats and longs from null strings
Protect against NullPointerException in getDisplayForObject