Do not try to get edit links for terms that do not exist

Resovles #217
Merge pull request #228 from x-team/issue-217

Do not try to get edit links for terms that do not exist