Bug fix: KeyError: 'unlinked_count' in import_block.