Don't set the attachment name field if there's no attachment.