Fix attributegroup form state and improve messages when removing attribute from attribute group, family and product

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