Discovery: How to diagnose RuleError on a pattern: rule tpl_CustomPattern_body_0 due to: Error while executing a rule -- AttributeError: 'NoneType' object has no attribute 'get'