Prevent divide by zero, catch throwable #460

* when sending email, try/catch throwable
* test denominator before potential divide by zero