Fixed issue #8359: Importing an empty group causes an error