Updating a document with attachments from the git repository breaks the attachments
To reproduce:
- select a document that has changes between the wiki and the git repository
- update the document on the wiki from the repository
- on the wiki, the attachment of the document does not have any content, only the metadata