fix(thconcept): Correct access to undefined index in recomputeRelations() (refs #4764)