Fix numeric verification for Int and Float text widgets.

Allow '.', '-.', and '-' even though without numbers, they cannot be parsed.

closes #5443