Handle case when product.attributes is None #6597