Fix hasNext for empty ResultSets.