fix error when a product doesn't have a category set.