Return empty dependency report when no dependencies were found
Why is this change being made?
In gitlab-org/gitlab#349561 (closed) it was discovered that for from scratch
images trivy
is not returning all data in the report, we were assuming that these values are available and incorrectly tried to convert it to GitLab format, however it was failing.
This MR fixes that problem by returning empty report when no results are found in the trivy
output.