search now responds correctly to empty input