XWIKI-8930: Deleting an attachment should send an event
* really don't save the document when removing an attachment with merge...
(cherry picked from commit f4bce3f8b1ec413fd9fd191c6616a4b783b6a1ed)