Handle null ASTs in teh cached subtrees