Don't traverse all pages to get a single page.

Fixes #3811