Fixed retrieval of tag colors.
If GID != name we have to also consider the name.
Phabricator: git.kolab.org/T1247