Detect duplicate rules in RuleHandler