corrected a bug where empty folder would not return 0 as file count but null