Fix issue with required attributes creating a product

I had trouble creating a product this way when the product class contains product attributes that are required. Changing it to set the attributes on the unsaved product instance's attribute container fixes the issue. I hope that makes sense :)