Fix typo in _autocomplete_search

Use name variable instead of name string

issue4113
review6481002