avoid a failure when there are no attachments