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