PIM-1526 : Fix error in UniqueVariantAxisValidator introduced during refactoring