added a check before executing SQL to associate an attribute type to an attribute category

- if attribute type was previously attached, SQL error was thrown
Merge pull request #1094 from aghouseh/add-check-to-attribute-category-association

added a check before executing SQL to associate an attribute type to an attribute category