Handling the case where a list runs out, but there's still an element on the page that looks like a next button (maybe grayed out, that sort of thing).  No longer goes into an infinite loop on this case.