Add check for empty attachment.

Without this blank attachments are added if the attachment is blank or an empty string is passed into the wp_mail function for $attachments