Fix nextForwardPosition()
Check for text node