Find term based on id instead of slug, if you use numbers as term names it conflicts with the ids since has_term searches on id, slug and name when a string is passed but only on ids when integers are passed.
Merge pull request #2252 from kloon/master

Show selected attributes based on id and not slug in product edit pages.