Fix bug triggered by deleting pages in sections with no default page.