fix null-check in rule to output useful debug information for whatever
block is null/etc