XWIKI-10870: Migration fails from 4.5.2 to 6.2M2 with File System Attachments enabled

(Cherry-picked from master commit 02589703cab55f38f9700599da0be67b183f8acb)