Fixing issue where performFiltering wasn't getting called if the filter
length was 0 in length.