PIM-1225 : fix the pre-selection of unknown category that throws an exception

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-1225