Fixes PHP error if a registration error occurs

We have the correct code, but a typo causes a PHP error for a null variable if an error occurs when a user tries to sign up for a site with Clef.