Validate rule.id before adding handler with it.