The snapshotItem() method of the null in case the index is not within the range of nodes.
snapshotItem()
null
MDN Reference