Issue 5870 - Debug code in SortedRange assumes it can always print the range