Here's what's happening:

All operations in swtbot are async.

Which means that the clicks on the Next button (above) has still not changed the page. when this line is executed. As a result swtbot finds the table on the previous page. This table has 0 rows, as a result the uncheck does not happen and the assert after this loop fails.