Fix undefined method error for CI::Pipeline
What does this MR do and why?
Contributes to #386797 (closed)
Problem
It raises an 500 error when tag reference is not found.
Solution
Check if tag exists before fetching the message.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.