Add a null check to toc because IE was breaking in compatibility mode.