Filtered error messages so they don't crash the javascript modals.
[#6294] Apply htmlspecialchars to modError->message

Merge remote-tracking branch 'fireproofsocks/bug-6294' into release-2.2

* fireproofsocks/bug-6294:
  Filtered error messages so they don't crash the javascript modals.