Removed code that looked up the associated set id as this assumes you have an existing item in the catalog. This means you should be able to create 'simple' product type items on the fly with an empty catalog.