Validate the category check against filters

Change the checkCategoryIsActive function to also check against category
filters when set.