Fix NPE when creating a new user from LDAP