Fix ignored ldap condition in regex

Fixes the case where a rule is based on a ldap filter condition on a
regex and is ignored.