Add deeper XML checking to update-translation script
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 bitcoin issue 4774.

cherry-picked from: bitcoin b62172a

coinwarp/dogecoin,coinwarp/dogecoin,langerhans/dogecoin,coinwarp/dogecoin,haisee/dogecoin,langerhans/dogecoin,Exceltior/dogecoin,koharjidan/dogecoin,jarymoth/dogecoin,haisee/dogecoin,koharjidan/dogecoin,langerhans/dogecoin,haisee/dogecoin,Domer85/dogecoin,Domer85/dogecoin,haisee/dogecoin,jarymoth/dogecoin,brishtiteveja/sherlockcoin,langerhans/dogecoin,marklai9999/Taiwancoin,jarymoth/dogecoin,koharjidan/dogecoin,coinwarp/dogecoin,koharjidan/dogecoin,coinkeeper/2015-06-22_18-37_dogecoin,Exceltior/dogecoin,Exceltior/dogecoin,jarymoth/dogecoin,coinkeeper/2015-06-22_18-37_dogecoin,langerhans/dogecoin,Exceltior/dogecoin,brishtiteveja/sherlockcoin,marklai9999/Taiwancoin,langerhans/dogecoin,Domer85/dogecoin,haisee/dogecoin,coinkeeper/2015-06-22_18-37_dogecoin,jarymoth/dogecoin,coinkeeper/2015-06-22_18-37_dogecoin,coinwarp/dogecoin,Domer85/dogecoin,coinkeeper/2015-06-22_18-37_dogecoin,koharjidan/dogecoin,marklai9999/Taiwancoin,Exceltior/dogecoin,brishtiteveja/sherlockcoin,brishtiteveja/sherlockcoin,koharjidan/dogecoin,brishtiteveja/sherlockcoin,marklai9999/Taiwancoin