Fix issue 10773.

If the separator is empty, should split into single-element subranges, rather than get stuck in an infinite loop of empty subranges.