Don't search for "empty" strings

The contact list is only filtered if the search query is not "empty",
i.e., contains at least one non-space character.