Fixed bug#10141 - invalid agents can't be selected in search form.