Fix occasional race-condition NPE if LanguageManager sends a change event before htmlReady() triggers languageSelect to get created.
Fix occasional race-condition NPE if LanguageManager sends a change event
before htmlReady() triggers languageSelect to get created.

It's not immediately obvious how this could happen: LM synchronously
requires languages.json, so it has all the core languages before the ESB
module loads; extensions don't start loading until after htmlReady(), so
extension-added languages can't cause this. BUT prefs load async in between
module init and htmlReady(), and LanguageManager populates partially async
too since it needs to wait for CM modes to load dynamically. I thnik either
of those can trigger a LM event during the window where ESB would crash.

busykai/brackets,Rajat-dhyani/brackets,michaeljayt/brackets,gwynndesign/brackets,malinkie/brackets,arduino-org/ArduinoStudio,youprofit/brackets,riselabs-ufba/RiPLE-HC-ExperimentalData,Fcmam5/brackets,srhbinion/brackets,NickersF/brackets,NGHGithub/brackets,show0017/brackets,SebastianBoyd/sebastianboyd.github.io-OLD,ForkedRepos/brackets,ChaofengZhou/brackets,pkdevbox/brackets,wesleifreitas/brackets,goldcase/brackets,rlugojr/brackets,alexkid64/brackets,flukeout/brackets,Andrey-Pavlov/brackets,kolipka/brackets,zhukaixy/brackets,flukeout/brackets,iamchathu/brackets,Live4Code/brackets,dtcom/MyPSDBracket,wangjun/brackets,thehogfather/brackets,keir-rex/brackets,m66n/brackets,Live4Code/brackets,ralic/brackets,CapeSepias/brackets,fashionsun/brackets,riselabs-ufba/RiPLE-HC-ExperimentalData,chrisle/brackets,ForkedRepos/brackets,iamchathu/brackets,Real-Currents/brackets,Live4Code/brackets,chinnyannieb/brackets,Free-Technology-Guild/brackets,resir014/brackets,weebygames/brackets,MahadevanSrinivasan/brackets,Cartman0/brackets,siddharta1337/brackets,fashionsun/brackets,chrismoulton/brackets,pratts/brackets,pkdevbox/brackets,srinivashappy/brackets,sophiacaspar/brackets,ricciozhang/brackets,petetnt/brackets,uwsd/brackets,karevn/brackets,jiimaho/brackets,gcommetti/brackets,NKcentinel/brackets,ChaofengZhou/brackets,cdot-brackets-extensions/nimble-htmlLint,lunode/brackets,shal1y/brackets,bidle/brackets,Free-Technology-Guild/brackets,Real-Currents/brackets,quasto/ArduinoStudio,weebygames/brackets,fvntr/brackets,Jonavin/brackets,ficristo/brackets,alexkid64/brackets,wakermahmud/brackets,uwsd/brackets,GHackAnonymous/brackets,bidle/brackets,nucliweb/brackets,MantisWare/brackets,uwsd/brackets,revi/brackets,fabricadeaplicativos/brackets,zLeonjo/brackets,fronzec/brackets,jacobnash/brackets,Jonavin/brackets,srinivashappy/brackets,keir-rex/brackets,ecwebservices/brackets,chambej/brackets,siddharta1337/brackets,veveykocute/brackets,jiawenbo/brackets,jiawenbo/brackets,stowball/brackets,humphd/brackets,srinivashappy/brackets,quasto/ArduinoStudio,lovewitty/brackets,mcanthony/brackets,TylerL-uxai/brackets,fronzec/brackets,quasto/ArduinoStudio,baig/brackets,iamchathu/brackets,jiawenbo/brackets,NKcentinel/brackets,riselabs-ufba/RiPLE-HC-ExperimentalData,cdot-brackets-extensions/nimble-htmlLint,SidBala/brackets,RamirezWillow/brackets,Th30/brackets,TylerL-uxai/brackets,fcjailybo/brackets,thehogfather/brackets,Mosoc/brackets,thr0w/brackets,siddharta1337/brackets,RamirezWillow/brackets,andrewnc/brackets,mat-mcloughlin/brackets,IAmAnubhavSaini/brackets,thehogfather/brackets,ficristo/brackets,sgupta7857/brackets,zaggino/brackets-electron,NGHGithub/brackets,riselabs-ufba/RiPLE-HC-ExperimentalData,chrisle/brackets,No9/brackets,falcon1812/brackets,fvntr/brackets,nucliweb/brackets,raygervais/brackets,massimiliano76/brackets,rafaelstz/brackets,pratts/brackets,mat-mcloughlin/brackets,jiimaho/brackets,FTG-003/brackets,fabricadeaplicativos/brackets,alexkid64/brackets,veveykocute/brackets,pratts/brackets,macdg/brackets,Th30/brackets,bidle/brackets,wesleifreitas/brackets,goldcase/brackets,goldcase/brackets,treejames/brackets,treejames/brackets,falcon1812/brackets,dtcom/MyPSDBracket,RobertJGabriel/brackets,karevn/brackets,shiyamkumar/brackets,netlams/brackets,IAmAnubhavSaini/brackets,fvntr/brackets,MarcelGerber/brackets,andrewnc/brackets,cdot-brackets-extensions/nimble-htmlLint,Mosoc/brackets,humphd/brackets,NickersF/brackets,Rajat-dhyani/brackets,emanziano/brackets,alexkid64/brackets,albertinad/brackets,wakermahmud/brackets,82488059/brackets,raygervais/brackets,dtcom/MyPSDBracket,CapeSepias/brackets,Lojsan123/brackets,chinnyannieb/brackets,StephanieMak/brackets,thr0w/brackets,pkdevbox/brackets,xantage/brackets,youprofit/brackets,udhayam/brackets,flukeout/brackets,SidBala/brackets,karevn/brackets,gcommetti/brackets,mjurczyk/brackets,ChaofengZhou/brackets,Pomax/brackets,goldcase/brackets,NickersF/brackets,thr0w/brackets,2youyouo2/cocoslite,Cartman0/brackets,NGHGithub/brackets,falcon1812/brackets,y12uc231/brackets,hanmichael/brackets,JordanTheriault/brackets,wakermahmud/brackets,keir-rex/brackets,netlams/brackets,zLeonjo/brackets,zhukaixy/brackets,chrismoulton/brackets,MarcelGerber/brackets,eric-stanley/brackets,baig/brackets,amrelnaggar/brackets,RamirezWillow/brackets,humphd/brackets,petetnt/brackets,fronzec/brackets,RobertJGabriel/brackets,sedge/nimble,gideonthomas/brackets,hanmichael/brackets,Jonavin/brackets,simon66/brackets,gideonthomas/brackets,Fcmam5/brackets,humphd/brackets,jmarkina/brackets,stowball/brackets,ScalaInc/brackets,srhbinion/brackets,albertinad/brackets,pomadgw/brackets,michaeljayt/brackets,ls2uper/brackets,adrianhartanto0/brackets,sgupta7857/brackets,gwynndesign/brackets,arduino-org/ArduinoStudio,thr0w/brackets,phillipalexander/brackets,jacobnash/brackets,Lojsan123/brackets,resir014/brackets,sedge/nimble,revi/brackets,MahadevanSrinivasan/brackets,Andrey-Pavlov/brackets,tan9/brackets,fastrde/brackets,shal1y/brackets,sophiacaspar/brackets,mozilla/brackets,thehogfather/brackets,wesleifreitas/brackets,m66n/brackets,bidle/brackets,adobe/brackets,arduino-org/ArduinoStudio,show0017/brackets,abhisekp/brackets,thr0w/brackets,CapeSepias/brackets,ropik/brackets,FTG-003/brackets,m66n/brackets,dangkhue27/brackets,andrewnc/brackets,massimiliano76/brackets,hanmichael/brackets,xantage/brackets,fashionsun/brackets,Rynaro/brackets,Lojsan123/brackets,massimiliano76/brackets,jiimaho/brackets,rafaelstz/brackets,andrewnc/brackets,cdot-brackets-extensions/nimble-htmlLint,JordanTheriault/brackets,Rajat-dhyani/brackets,robertkarlsson/brackets,falcon1812/brackets,MantisWare/brackets,sgupta7857/brackets,mcanthony/brackets,82488059/brackets,SebastianBoyd/sebastianboyd.github.io-OLD,zaggino/brackets-electron,xantage/brackets,brianjking/brackets,massimiliano76/brackets,fabricadeaplicativos/brackets,ScalaInc/brackets,Rajat-dhyani/brackets,zaggino/brackets-electron,ForkedRepos/brackets,xantage/brackets,Real-Currents/brackets,fastrde/brackets,Wikunia/brackets,2youyouo2/cocoslite,tan9/brackets,sedge/nimble,Fcmam5/brackets,IAmAnubhavSaini/brackets,shiyamkumar/brackets,michaeljayt/brackets,richmondgozarin/brackets,netlams/brackets,abhisekp/brackets,Andrey-Pavlov/brackets,rafaelstz/brackets,malinkie/brackets,mozilla/brackets,zLeonjo/brackets,adobe/brackets,andrewnc/brackets,sedge/nimble,fabricadeaplicativos/brackets,riselabs-ufba/RiPLE-HC-ExperimentalData,shiyamkumar/brackets,petetnt/brackets,malinkie/brackets,chrisle/brackets,ficristo/brackets,chrisle/brackets,ricciozhang/brackets,revi/brackets,Real-Currents/brackets,eric-stanley/brackets,RamirezWillow/brackets,ashleygwilliams/brackets,ropik/brackets,udhayam/brackets,kilroy23/brackets,Th30/brackets,weebygames/brackets,abhisekp/brackets,wangjun/brackets,Pomax/brackets,82488059/brackets,GHackAnonymous/brackets,emanziano/brackets,udhayam/brackets,mat-mcloughlin/brackets,jacobnash/brackets,ls2uper/brackets,sprintr/brackets,phillipalexander/brackets,riselabs-ufba/RiPLE-HC-ExperimentalData,iamchathu/brackets,fashionsun/brackets,ralic/brackets,RobertJGabriel/brackets,sophiacaspar/brackets,rlugojr/brackets,ralic/brackets,richmondgozarin/brackets,dangkhue27/brackets,ropik/brackets,ChaofengZhou/brackets,ashleygwilliams/brackets,eric-stanley/brackets,weebygames/brackets,chambej/brackets,treejames/brackets,amrelnaggar/brackets,baig/brackets,fastrde/brackets,TylerL-uxai/brackets,arduino-org/ArduinoStudio,alexkid64/brackets,Th30/brackets,wangjun/brackets,treejames/brackets,macdg/brackets,sophiacaspar/brackets,zLeonjo/brackets,petetnt/brackets,TylerL-uxai/brackets,Live4Code/brackets,wangjun/brackets,gideonthomas/brackets,Lojsan123/brackets,CapeSepias/brackets,gideonthomas/brackets,dtcom/MyPSDBracket,NKcentinel/brackets,karevn/brackets,ForkedRepos/brackets,netlams/brackets,MarcelGerber/brackets,ricciozhang/brackets,lovewitty/brackets,sprintr/brackets,massimiliano76/brackets,arduino-org/ArduinoStudio,hanmichael/brackets,adrianhartanto0/brackets,resir014/brackets,phillipalexander/brackets,uwsd/brackets,Free-Technology-Guild/brackets,SidBala/brackets,gupta-tarun/brackets,jacobnash/brackets,rafaelstz/brackets,mozilla/brackets,adrianhartanto0/brackets,gcommetti/brackets,fronzec/brackets,michaeljayt/brackets,ls2uper/brackets,youprofit/brackets,eric-stanley/brackets,shal1y/brackets,dangkhue27/brackets,m66n/brackets,siddharta1337/brackets,rlugojr/brackets,busykai/brackets,rafaelstz/brackets,kolipka/brackets,IAmAnubhavSaini/brackets,sprintr/brackets,zhukaixy/brackets,Free-Technology-Guild/brackets,mcanthony/brackets,falcon1812/brackets,shal1y/brackets,bidle/brackets,dangkhue27/brackets,Wikunia/brackets,MahadevanSrinivasan/brackets,Rajat-dhyani/brackets,fcjailybo/brackets,richmondgozarin/brackets,busykai/brackets,jiimaho/brackets,nucliweb/brackets,chrismoulton/brackets,veveykocute/brackets,lunode/brackets,jacobnash/brackets,udhayam/brackets,raygervais/brackets,revi/brackets,chinnyannieb/brackets,mcanthony/brackets,emanziano/brackets,jiimaho/brackets,gupta-tarun/brackets,FTG-003/brackets,No9/brackets,ashleygwilliams/brackets,NickersF/brackets,MarcelGerber/brackets,uwsd/brackets,chrismoulton/brackets,No9/brackets,TylerL-uxai/brackets,RobertJGabriel/brackets,ScalaInc/brackets,wakermahmud/brackets,MantisWare/brackets,jmarkina/brackets,sophiacaspar/brackets,Free-Technology-Guild/brackets,lovewitty/brackets,fastrde/brackets,fashionsun/brackets,zaggino/brackets-electron,richmondgozarin/brackets,amrelnaggar/brackets,GHackAnonymous/brackets,pomadgw/brackets,Andrey-Pavlov/brackets,mjurczyk/brackets,fabricadeaplicativos/brackets,Pomax/brackets,malinkie/brackets,simon66/brackets,hanmichael/brackets,amrelnaggar/brackets,veveykocute/brackets,zhukaixy/brackets,chrismoulton/brackets,adobe/brackets,albertinad/brackets,resir014/brackets,simon66/brackets,Jonavin/brackets,zaggino/brackets-electron,ashleygwilliams/brackets,ralic/brackets,stowball/brackets,gcommetti/brackets,Rynaro/brackets,MahadevanSrinivasan/brackets,Wikunia/brackets,ricciozhang/brackets,abhisekp/brackets,nucliweb/brackets,mjurczyk/brackets,zaggino/brackets-electron,jmarkina/brackets,ChaofengZhou/brackets,2youyouo2/cocoslite,y12uc231/brackets,Jonavin/brackets,iamchathu/brackets,ecwebservices/brackets,chrisle/brackets,fronzec/brackets,kilroy23/brackets,gcommetti/brackets,ls2uper/brackets,StephanieMak/brackets,keir-rex/brackets,baig/brackets,ecwebservices/brackets,marcominetti/brackets,ropik/brackets,kolipka/brackets,jmarkina/brackets,goldcase/brackets,pratts/brackets,gideonthomas/brackets,StephanieMak/brackets,Lojsan123/brackets,zhukaixy/brackets,phillipalexander/brackets,shiyamkumar/brackets,SebastianBoyd/sebastianboyd.github.io-OLD,2youyouo2/cocoslite,gupta-tarun/brackets,kilroy23/brackets,sgupta7857/brackets,adobe/brackets,marcominetti/brackets,FTG-003/brackets,lovewitty/brackets,ralic/brackets,show0017/brackets,chambej/brackets,srinivashappy/brackets,revi/brackets,Cartman0/brackets,shal1y/brackets,Fcmam5/brackets,wesleifreitas/brackets,ficristo/brackets,SebastianBoyd/sebastianboyd.github.io-OLD,macdg/brackets,Andrey-Pavlov/brackets,srhbinion/brackets,ScalaInc/brackets,fvntr/brackets,youprofit/brackets,fcjailybo/brackets,Rynaro/brackets,wangjun/brackets,gwynndesign/brackets,resir014/brackets,jmarkina/brackets,ricciozhang/brackets,mjurczyk/brackets,GHackAnonymous/brackets,Pomax/brackets,Mosoc/brackets,netlams/brackets,ficristo/brackets,chinnyannieb/brackets,ecwebservices/brackets,baig/brackets,SebastianBoyd/sebastianboyd.github.io-OLD,82488059/brackets,MarcelGerber/brackets,Fcmam5/brackets,quasto/ArduinoStudio,GHackAnonymous/brackets,pomadgw/brackets,CapeSepias/brackets,udhayam/brackets,robertkarlsson/brackets,lunode/brackets,lunode/brackets,srinivashappy/brackets,m66n/brackets,simon66/brackets,mozilla/brackets,quasto/ArduinoStudio,ForkedRepos/brackets,Wikunia/brackets,srhbinion/brackets,pratts/brackets,RamirezWillow/brackets,Th30/brackets,busykai/brackets,Real-Currents/brackets,srhbinion/brackets,brianjking/brackets,amrelnaggar/brackets,ScalaInc/brackets,sedge/nimble,brianjking/brackets,rlugojr/brackets,No9/brackets,JordanTheriault/brackets,MahadevanSrinivasan/brackets,keir-rex/brackets,pomadgw/brackets,jiawenbo/brackets,robertkarlsson/brackets,tan9/brackets,Live4Code/brackets,albertinad/brackets,wakermahmud/brackets,pkdevbox/brackets,NickersF/brackets,NKcentinel/brackets,mcanthony/brackets,JordanTheriault/brackets,NGHGithub/brackets,82488059/brackets,y12uc231/brackets,abhisekp/brackets,Rynaro/brackets,veveykocute/brackets,karevn/brackets,NGHGithub/brackets,fcjailybo/brackets,thehogfather/brackets,FTG-003/brackets,NKcentinel/brackets,raygervais/brackets,No9/brackets,MantisWare/brackets,zLeonjo/brackets,treejames/brackets,nucliweb/brackets,kolipka/brackets,wesleifreitas/brackets,chambej/brackets,tan9/brackets,macdg/brackets,sgupta7857/brackets,flukeout/brackets,Rynaro/brackets,kolipka/brackets,shiyamkumar/brackets,gupta-tarun/brackets,show0017/brackets,y12uc231/brackets,StephanieMak/brackets,simon66/brackets,brianjking/brackets,eric-stanley/brackets,fvntr/brackets,tan9/brackets,SidBala/brackets,albertinad/brackets,ashleygwilliams/brackets,Wikunia/brackets,mat-mcloughlin/brackets,dangkhue27/brackets,siddharta1337/brackets,adrianhartanto0/brackets,rlugojr/brackets,ecwebservices/brackets,brianjking/brackets,michaeljayt/brackets,Mosoc/brackets,Pomax/brackets,raygervais/brackets,chambej/brackets,malinkie/brackets,Real-Currents/brackets,flukeout/brackets,kilroy23/brackets,youprofit/brackets,pomadgw/brackets,stowball/brackets,IAmAnubhavSaini/brackets,Cartman0/brackets,kilroy23/brackets,fastrde/brackets,JordanTheriault/brackets,gwynndesign/brackets,SidBala/brackets,petetnt/brackets,humphd/brackets,gupta-tarun/brackets,phillipalexander/brackets,adobe/brackets,weebygames/brackets,Mosoc/brackets,busykai/brackets,lovewitty/brackets,MantisWare/brackets,sprintr/brackets,Cartman0/brackets,sprintr/brackets,lunode/brackets,y12uc231/brackets,RobertJGabriel/brackets,stowball/brackets,adrianhartanto0/brackets,2youyouo2/cocoslite,mjurczyk/brackets,chinnyannieb/brackets,robertkarlsson/brackets,macdg/brackets,mozilla/brackets,xantage/brackets,StephanieMak/brackets,emanziano/brackets,robertkarlsson/brackets,jiawenbo/brackets,fcjailybo/brackets,pkdevbox/brackets,ls2uper/brackets,emanziano/brackets,richmondgozarin/brackets