Fixes #4149: Restore cat. with same name and different parents
Merge pull request #414 from fanf/bug_4149/error_when_restoring_archive_with_subcat_having_same_name

Fixes #4149: Restore cat. with same name and different parents