fix an issue for when the root folder is deleted
Merge pull request #1147 from devoncarew/devoncarew_fix_root_delete

fix an issue for when the root folder is deleted