Bug fix: Files with no mime type throw exception in listFiles()