XWIKI-8978: PDF Export does not handle XWiki links to attached files properly
* The revert of XWIKI-106 broke the fix, fixing again