I think the whole block until after `g_object_unref(coverage_output_file)` should be under the condition `if (js_context->coverage_output_path)`.