Fix crash with AST checkers when the syntax is invalid. Issue #160