XWIKI-11050: Do not fail the UI when there's a problem rendering the document's content
* Made message more generic for #displayException