You will get a similar error whenever you fetch multiple pages (that exist) and ask also for the area info for those pages but all the areas of those pages were deleted somehow without deleting the contents too.
Fixed in the ZIP. This code will not try to run if a page is in this state.