Update RegisterHandler.php

Minor Bugfix