search: Fix timeout ordering
search: Be a bit more careful in _doSearch about timeouts