XWIKI-8930: Deleting an attachment should send an event
* also apply the same logic to XWikiDocument#saveAttachmentContent