Fixed: Fatal error when triggering email notifications in the backend. Related to #462