entry completion: add checks that entry is set already
If any of the APIs that assumes that the entry is set already is used before having one already set, things break pretty badly.
Fixes a downstream issue reported at https://github.com/gtk-rs/gtk4-rs/issues/873
Edited by Sebastian Dröge