Fixed a bug that caused nextUnconsumed() to skip the current row when the
possible next coordinate was contained in the set of consumed coordinates.