Fix #6204 : only unindent toc if we indented it previously.