Revert commit for XWIKI-9000 (Error when clicking on "View attachment history" for an attachment when not using legacy oldcore) since it's not really a blocker for 4.5.x and it's causing some unnecessary CLIRR changes