only remove extension if the extension_id is set