gdk_x11_display_get_monitor: fix monitor number test logic

When asked for a nonexistent (positive) monitor number,
gdk_x11_display_get_monitor would (at best) return an uninitialized pointer,
instead of returning NULL.
3 jobs for master in 31 minutes and 38 seconds (queued for 14 seconds)
latest
Status Job ID Name Coverage
  Build
passed #22579
gtk

00:09:47

 
  Flatpak
passed #22580
flatpak:demo

00:04:45

passed #22581
flatpak:widget-factory

00:21:36