minor fix: improved null handling in LDAPAuth for mock