Fix bug in checking for unique germplasm

Issue: GCP-8868

Reviewer: Dennis (post-commit)