Fix for syntax error in RegisterException.

Needed a small fix to pass PHP linter.

    > php -l RegisterException.php 
    PHP Fatal error:  Can't use function return value in write context in RegisterException.php on line 60
    Errors parsing RegisterException.php