Fix error when the mail is empty