Hg 55 table of contents empty fix

I believe this also fixes HG-56: state of table of contents doesn't reset on page transition