PIM-2830: Allow to find last or first version entry independently of it's a pending version or not