Fix null pointer bug in repository map

Caused error (null pointer exception) when adding new users.