Check if we want to send email for a build before iterating through its users

Signed-off-by: Shea Levy <shea@shealevy.com>