Update Treeview.php

added check to see if menu node is empty. if it's empty, there's not reason to create a <li>