Surround possible null array reference in quotes to make PHP8.5 happy

Closes #3576305

Merge request reports

Loading