Correctly retrieve product class for variant products

Variant products don't have an own product class but use that of their
parent product instead.
Merge pull request #1248 from mbertheau/fix-variant-product-class

Correctly retrieve product class for variant products