Fixed an error when an empty email form is submitted.