Don't allow deleting an attribute if it is used by a variant group

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Unit test passes: yes
Behat scenarios passes: yes
Checkstyle issues: no
ChangeLog updated: yes
Documentation PR: ~
Fixes the following jira:
 - PIM-1514