LPS-42561 Add null check before using LDAP group search filter