detect * with no character following as invalid format code

... so adding it to the list in Format Numbers using the checkmark
button is not possible.

Change-Id: I57ca6a7a3617583a82a99c87291373b1fe4e246d