Fixed possible NPE in Files.listFiles.