FIX: destroy CategoryGroup when Category or Group is destroyed
Merge pull request #2733 from kamilbielawski/destroy_category_group_when_category_is_destroyed

FIX: destroy CategoryGroup when Category or Group is destroyed