[WIP] PIM-1362 : history issue on product when we delete a category or a group

Bug fix: [yes]
Feature addition: [no]
Backwards compatibility break: [no]
Unit test passes: [yes]
Behat scenarios passes: [yes]
Checkstyle issues: [no]
Fixes the following jira: PIm-1362