idmap_ldap: Fix CID 1404836 Dereference before null check