fix for NPE when passed fileFilter in listFiles is a null object