(#16856) fix hiera2 yaml backend for empty/invalid yaml files