Tidy runner_wrapper/api

What does this MR do?

Fixes https://gitlab.com/gitlab-org/gitlab-runner/-/jobs/10187364474

Was merged into main due to !5562 (comment 2532320625)

Why was this MR needed?

What's the best way to test this MR?

What are the relevant issue numbers?

Merge request reports

Loading