[MWF] Fix off-by-one from 5a5c683

first_row_index needs to be <= RowsLeft - 1, since we are comparing a
row count vs an index.