Fix NullPointerException when non administrator user try to create new location.