XWIKI-7936: When you import a page, that have no attachment and overwrite an existing page containing attachments, some errors appear with them.

* Can't use list.contains because XWikiAttachment does not have an equals() method.