Fixes crash in gnome-shell CSS styling test. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4289>
get_key_focus()