fixes ZEN-15584 do not attempt to send the email when rasterize.js fails