Fix broken compare prices feature for products without shop and/or brand.