dealing with deleted attachments that may still be referenced in content