fix: move email status check to fix travis
fix: move email status check to fix travis

mail status wasn't being set when the check was run, so the output for
any() would always be false, and none of the mails would have status set
to sent in the backend. moving the check to a point after setting status
for each email should fix this issue

Signed-off-by: Chinmay D. Pai <ab3234b32bd9ecd2892f3eb0b557ab584a8ff0cf@gmail.com>

saurabh6790/frappe,adityahase/frappe,mhbu50/frappe,mhbu50/frappe,adityahase/frappe,mhbu50/frappe,saurabh6790/frappe,almeidapaulopt/frappe,yashodhank/frappe,yashodhank/frappe,StrellaGroup/frappe,almeidapaulopt/frappe,saurabh6790/frappe,frappe/frappe,almeidapaulopt/frappe,frappe/frappe,yashodhank/frappe,adityahase/frappe,yashodhank/frappe,frappe/frappe,StrellaGroup/frappe,StrellaGroup/frappe,almeidapaulopt/frappe,adityahase/frappe,mhbu50/frappe,saurabh6790/frappe