bugfix: duplicate categories

Fixes a small bug in which duplicate categories are allowed to be added
for the same product.