Flat Catalog Product workaround

Fixed filter not working when "Use Flat Catalog Product" was set to "Yes". The filter now works for all combinations of "Use Flat Catalog Category" and "Use Flat Catalog Product".