Validate rule.id before adding handler with it.
Merge pull request #652 from jsha/validate-rule-id

Validate rule.id before adding handler with it.