Fixed a bug not setting the correct uuid of subobject due to wrong if
clauses in post(Collection<Product>)