Multi-page template fix

https://github.com/prawnpdf/prawn/issues/199