find_rule_match breaks loop when no match

This change allows find_rule_match to break out of it's tightly looped
find_rule_match once it's become clear that no match is possible.