PIM-2830: Link a published product to a version

Allow to find last or first version entry independently of it's a pending version or not

| Q                    | A
| -------------------- | ---
| Bug fix?             | No
| New feature?         | No
| BC breaks?           | No
| CI currently passes? | Yes
| Tests pass?          | Yes
| Scenarios pass?      | ?
| Checkstyle issues?   | No
| Changelog updated?   | -
| Fixed tickets        | -
| Doc PR               | -