Fix validation for nothing-but-decimal-mark input

If you try to validate input that is nothing but decimal marks, it currently tries to call `split` on `nil` - this fixes the problem.