Fix a typo about get an attribute on user objet

To solve this error:
```An exception has been thrown during the rendering of a template ("Notice: Array to string conversion in /var/www/investigation/framework-standard-edition/vendor/symfony/symfony/src/Symfony/Component/Translation/Translator.php line 130") in "FOSUserBundle:Registration:confirmed.html.twig".```