(#3092) - correctly handle attachments when _deleted

Test fails before the fix, succeeds after.