Fix findwordbreakbefore when given index is 0