remove ldap filters only if they exist