Fixed crash on missing TEMPLATE_EMAIL_BASE_URL