XWIKI-11322: Choosing language on PDF Export does not work right after changing the language of the document in view mode