Preventing NPE in ldap form view