rem: this._currentEngine = this.getEngineByName(val.name) || this.defaultEngine; 
add: var newCurrentEngine = this.getEngineByName(val.name); ENSURE(newCurrentEngine, "Can't find engine in store!", Cr.NS_ERROR_UNEXPECTED);  this._currentEngine = newCurrentEngine; 
context:   set currentEngine(val) {    ENSURE_ARG(val.QueryInterface(Ci.nsISearchEngine),               "Invalid argument passed to currentEngine setter");    this._currentEngine = this.getEngineByName(val.name) || this.defaultEngine;    setLocalizedPref(BROWSER_SEARCH_PREF + "selectedEngine",                     this._currentEngine.name);    notifyAction(this._currentEngine, SEARCH_ENGINE_CURRENT);  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/7cf17842e3d18736fe4e53c02c582a591125475b/nsSearchService.js/buggy/browser/components/search/nsSearchService.js