fix exception when opening empty folder and file open
Merge pull request #2836 from adobe/randy/open-empty-folder

Fix exception when opening empty folder and file open