Fixed a bug where the email would not get send if not emails settings are configured in config.php