Fix empty dependency list page
What does this MR do and why?
This is a backport of Fix empty dependency list page (!162352 - merged)
SQL Query and description remains same.
Fix empty dependency list page
Prevent deletion of occurrence when container_scanning_for_registry report is ingested.
Changelog: fixed EE: true
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.