Write a test for the null reference bug in HTML Injection check

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

A quick fix for API Security: Testing failed: Object reference ... (#371740 - closed) was added in MR https://gitlab.com/gitlab-org/security-products/analyzers/api-fuzzing-src/-/merge_requests/837+. The quick fix didn't have any tests written for it. This is a follow-on issue to write tests for the bug that was resolved.

Edited by 🤖 GitLab Bot 🤖