Fixed bug regarding html messages not being sent when not attachments exists