PIM-2148: Fix hashnav problem creating attribute groups

| Q                   | A
| ------------------- | ---
| Bug fix?            | Y
| New feature?        | N
| BC breaks?          | N
| Tests pass?         | Y
| Scenarios pass?     | Y
| Checkstyle issues?  | N
| Changelog updated?  | Y
| Fixed tickets       | PIM-2148
| Doc PR              |