Improve email handling when there are no files uploaded