Don't fall over when sending out alerts with bad email. Fixes #339