Fixed bug in fonsTextIterNext()

- fonsTextIterNext was not terminating correctly when using substring