Fix search input hint not clearing properly.

Ping #5163.