Be defensive when sending the failure email.

The workspace may be null during a failure.