Backport !1941 “gkeyfilesettingsbackend: Fix basename handling when group is unset” to glib-2-66

Trivial backport of !1941 (merged) to glib-2-66.

Merge request reports