For data sources with inconsistent row numbers, queryByIndex should not set a resultindex. #4926 #4076