[FLINK-1307] Added acceptFile() check in getFileStats()