Fix an issue where even in empty rowsets it would look for the sort colu...

...mn