added logic to make sure destroying a product is not referenced by a line item