Bug 885351: make sure defaultEngine and currentEngine are always in sync, including when the prefs have invalid values or after an upgrade from <FF23, r=MattN

--HG--
extra : transplant_source : Z%E3%AE%91%1D%D5%930%DE%F7%EA%F4dG%C7%B2%0B%9F0i