Fix remove file from root if no folder selected in tree

Remove file from root.