Allow the parser to avoid nested processing of invalid rules (GH-31252)

6 files changed