Don't expect attributes to be submitted when setting them

When a product's product class specifies attributes, the code previously
assumed they would make it into cleaned_data of the ProductForm. This is
not the case if the field is left empty; this commit accomodates for
that.

The issue was reported in #1497.