Fix for first page not having any visible blocks

@ryancarlson this is the fix for the issue in Tracy's email.
Doesn't break the loop if the page is removed below.  Some pages where skipped before because the loop is based on the page index.  Now it will make it though every page, regardless if one is removed.