[PATCH 6.12 023/422] drm/tests: hdmi: handle empty modes in find_preferred_mode()