Add null test before accessing TypeTree.original