Fixes:

  • Made writes of \thesis@pages and \thesis@pages@postamble immediate. This is so that we don't lose the writes if the last page ends up empty.