Fix crash when current folder is not set