display: Fix crash if a monitor has no preferred mode
This should be cherry-picked to stable.
See https://bugzilla.redhat.com/show_bug.cgi?id=1699975 for the crash happening.
When a monitor has no current mode set and also no preferred mode we ran into a crash. Simply select the first mode we can find as a further fallback.