Only add an attachment if it exists.