layout doc before looking for and deleting empty last page
layout doc before looking for and deleting empty last page

- move layout toc routine above delete final page if empty
- move to last page (instead of last page - 1) after laying out toc in main document

asciidoctor/asciidoctor-pdf,mojavelinux/asciidoctor-pdf,dsisnero/asciidoctor-pdf,mojavelinux/asciidoctor-pdf,asciidoctor/asciidoctor-pdf,Hextremist/asciidoctor-pdf,dsisnero/asciidoctor-pdf,Hextremist/asciidoctor-pdf