Solved a bug when selecting a file

There was a bug when selecting an empty file, when a folder is empty
the filesel.py crash