Skip page when it has no glyphs to draw

Fixes #1230