Adds checks for null Closes #34100 See merge request gitlab-org/gitlab!18597
Attach a file by drag & drop or click to upload