Fixed warning when creating product without having a product type (#804)