Ensure only distinct products are returned at api/products#index

Fixes #4200