product editor - bug fix in inventory

If a product had no inventory record, a JS error resulted.