qt: Add deeper XML checking to update-translation script

- Catch problems such as mismatched formatting characters. Remove messages that can give problems at runtime.

- Also remove unfinished/untranslated messages, they just take up space in the ts and waste parsing time.

Fixes #4774.