Fixed a bug that when search result is null, cannot switch back to map.