Fix for TOC generating.

Port org-html--format-toc-headline declared in ox-html.el for TOC generating.