Fix infinite loop in split string utils on android ref #4517