Catch Swift exceptions when sending form data via e-mail (see #6941)