Fix JobInjector error when stage does not exist for some jobs
What does this MR do and why?
Fix JobInjector error when stage does not exist for some jobs.
Logs with the issue: https://log.gprd.gitlab.net/app/r/s/6pyZK
Related to #482860 (closed).
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Martin Čavoj