Fix failing test in traversing. Text nodes do not have sourceIndex.