Don't wait for pages from 0 page documents. Fixes #528