v2 api: repositories: fix retrieval of product

Reworking https://github.com/Katello/katello/pull/3604