Fix EZP-22554: Email error when registering a user
Merge pull request #978 from ezsystems/ezp-22554-user_register_email

Fix EZP-22554: Email error when registering a user