Fix bug 1046106 - Only search when input is filled