Fix error when scan result policy is missing actions or rules
What does this MR do and why?
This MR fixes a problem with NoMethodError
when the policy is configured without UI editor and is missing important fields.
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.
Related to #408395 (closed)