Improve product_cat queries in breadcrumbs

This fix the #5906