common: Fix crash in language chooser

A report in Red Hat bugzilla [1] shows for some reason the country is set to
NULL and this causes a crash when comparing against search terms. The solution
is to handle the NULL without crashing.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1685251
11 jobs for <span class="ref-name">language-chooser-crash</span> in 12 minutes and 43 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build
passed #253953
build

00:04:18

 
  Test
passed #253955
asan

00:03:22

passed #253954
test

00:05:17

 
  Manual
manual #253960
allowed to fail manual
armv8
manual #253956
allowed to fail manual
flatpak
manual #253959
allowed to fail manual
msan
manual #253961
allowed to fail manual
ppc64le
manual #253957
allowed to fail manual
tsan
manual #253958
allowed to fail manual
ubsan
 
  Review
manual #253962
allowed to fail manual
review
manual #253963
allowed to fail manual
stop_review