fix: passRule causes error if record has not key in condition

Hi, I fix the bug in method `passRules`.
`passRule` caused error if record has not key in condition.
Thanks.