Fix a null ref on creating roles.