[bug] [33848] Fix fatal error when sending contact form.
Closes #3763