Fix metrics dashboard YAML validation
What does this MR do?
Fixes validation added in !33202 (merged) which do not cover situation when file with dashboard definition does not contain hash as a root element.
Screenshots
from https://gitlab.com/gitlab-org/monitor/monitor-sandbox/-/blob/master/.gitlab/dashboards/empty_dashboard.yml
Does this MR meet the acceptance criteria?
Conformity
Edited by 🤖 GitLab Bot 🤖