Fixes crash when editing security protocols of XMPP account.
Improves message correction layout.
Fixes NPE.