hide toc button on invalid page

Change-Id: I1f957276580769514262efc3887d751bae85f4a5
Merge "hide toc button on invalid page"