Fixes #34130 (comment 33397067).
We introduced head_pipeline as a value of merge_requests. This is however not updated when external pipeline is created. Thus this leads to issue described above.
I also created technical debt to fix the CommitStatus API: #34376.
This will create a new commit in order to revert the existing changes.