Adjust loop counters in word break detection when removing item

Bug: 63333
Change-Id: Ie00e7f8eb5ce41b19f0df9977eee2916d6761b93
Merge "Adjust loop counters in word break detection when removing item"