Fix warning in tree.php on empty library folder

Fix warning of undefined variable