Fix LT-15599: When deleting a ws don't crash for end of string runs

Change-Id: Ia70de9c6e331832d434dc2541b4a702bb01c7e9f