Add Null resilience for AstNodes