Bug 1036671 - Fix the search window crash