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 3 minutes and 26 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
passed #254806
build

00:01:27

 
  Test
passed #254808
asan

00:01:57

passed #254807
test

00:00:55

 
  Manual
manual #254813
allowed to fail manual
armv8
manual #254809
allowed to fail manual
flatpak
manual #254812
allowed to fail manual
msan
manual #254814
allowed to fail manual
ppc64le
manual #254810
allowed to fail manual
tsan
manual #254811
allowed to fail manual
ubsan
 
  Review
manual #254815
allowed to fail manual
review
manual #254816
allowed to fail manual
stop_review