OVT-8210: Fix the bug that prevents adding relation

Relation that references codes itself.
Merge branch 'develop' of https://github.com/Opetushallitus/koodisto into develop