Fix a bug with deleted attachments showing up broken