null reference check in RootAstValue