Add a comment and some code to clarify that newAst could be NULL