prevent submission of empty search form (see #1599)