Also, make empty strings be parsed as invalid by parseDecimal.
Common code used by more than one app, but not by the kernel.