mainwindow: fix nullptr access when search entry text changed

This patch prevents nullptr access when you search entry text (contact)
is changed, that causes a crash.

Refs #73567

Change-Id: Ib154073435a15f7c74d45c9ad842b7fcb2dc1da1
1 file changed