[CDE-340]: fixed bug when path was empty and could not list folders

@pamval please review