Fix NoMethodErrors when there is no slack_application
What does this MR do and why?
Prior to this change, we were not checking for the presence of
the GitlabSlackApplication#slack_integration
record before calling
method on it. This change adds that presence check.
See: #386541 (closed)
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
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.