SendMailTask was failing if email did not have any email headers