Guard against nil as value

What does this MR do and why?

#fetch tests for key existence, so if the value of options_retry[:when] is, for some reason, set as nil, we will see NoMethodErrors elsewhere in the app, when the intent is clearly to always return the default value of ['always']

Spotting this while bopping around Sentry: https://new-sentry.gitlab.net/organizations/gitlab/issues/1536/

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

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.

Merge request reports

Loading