Fix null pointer exception when using LDAP
Merge branch 'develop' of https://github.com/geonetwork/core-geonetwork into develop