Fix RTD theme toc when pages don't have children.

Sidebar was blank if the nav_item.children was empty.