XWIKI-11243: Improving display for .xform's .xErrorMsg

(cherry picked from commit 38571c67009aaecdd66fca57dd7dcda9fdcb5f12)