Add a better error handling for empty import sets.