Adding check for bad reports and attachments