XWIKI-9000: Error when clicking on "View attachment history" for an attachment when not using legacy oldcore