Fix the category importer.

When parent category cannot be created, throw an error message.