Fix warning in tree.php on empty library folder

Fix warning of undefined variable
Merge pull request #6 from gorekee/patch-1

Fix warning in tree.php on empty library folder