Add check for toctree function, needed for json builder compatibility
Add check for toctree function, needed for json builder compatibility

sphinxcontrib/sphinxcontrib-fulltoc,dreamhost/sphinxcontrib-fulltoc