You can use another way: create a pdf.css:
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HOverridetheCSSrules
with
.floatinginfobox {
display: "none";
}
I use Css Class .floatinginfobox
because my TOC is in:
{{box cssClass="floatinginfobox" title="**Nice TOC**"}}
You can use your custom Class/Id from “Cleaned XHTML” generated.
See: Debuging style in PDF export in xwiki 8.4.4