Fix bug in send job email

Fixed a bug which caused 7 "phantom" jobs to always appear as waiting to be sent, even though they had never been approved.