Reenforce the invariant on dangling referenced AstNode