Fix filtering by product slugs.

@ossreleasefeed noticed that filtering by product did not work as expected. I dug around and realized it was filtering by id instead of slug. This should fix it, including a test case.

r?