Fix issue 2268 in addon/search/search.js