Fix possible segfault (init importer in new API)