fix warning when searching text (see https://bugzilla.gnome.org/show_bug.cgi?id=606751)