Typeahead search - fixes for errors on blur event

Fix also the focus issue.

Fix for https://github.com/inspirehep/inspire-next/issues/70