Fix a crash if the product is null