rules: be more paranoid in scanner

This can't happen, but better do it properly.

Signed-off-by: Ran Benita <ran234@gmail.com>