XWIKI-7936: When you import a page, that have no attachment and overwrit...

...e an existing page containing attachments, some errors appear with them.

* The attachments of the previous version were not added in the new version, meanwhile they were still existing in the database.
* It happens when you import the document as a new version.