SOC-195: Unable to connect to LDAP, when user null (NullPointerException)