Fix crash when tab completing non existing folder.

Whenever you tried to tab complete a folder that either did not exist
or you did not have access permissions, a exception was raised by
os.listdir and was not treated.