Add position range check before accessing `TypeTree.pos`