Fix divide by zero warning in product.variations.