Adding fix when iter_row_buffer exceeds number of rows in table.