fix bug with afui:ready not being dispatched if firstDiv is not found.
fix bug with afui:ready not being dispatched if firstDiv is not found.

Fix bug where firstDiv is not properly set when selected="true" is not found on any panels

rubenvp8510/appframework,liuzhentao/appframework,RedrockTeam/appframework,topishka/appframework,wizza-smile/appframework,nomadgit/appframework,PuterGIrl/appframework,anysisze/appframework,ramitallal/appframework,leokt/appframework,REALDROOPY/appframework,weiwei03/appframework,pranay06b/appframework,mastrobardo/appframework,KehindeAyanleye/appframework,jiushiliu/appframework,zcgao/appframework,ouyanghuangzheng/appframework,boolie/appframework,hnney/appframework,9-9-9/appframework,vincent1988/appframework,kityandhero/appframework,Basildcruz/appframework,ahmedali5530/appframework,Connectlegendary/appframework,b-cuts/appframework,anysisze/appframework,HappyYang/appframework,ImCodeMonkey/appframework,HappyYang/appframework,huyongliang/appframework,rickel/appframework,iamxiaoma/appframework,kschuster/appframework,busseyl/appframework,JackieWei/appframework,huq2015/appframework,rockanita/appframework,9-9-9/appframework,HandMobile/appframework,fudaoji/appframework,flowbywind/appframework,leonet/appframework,dizzydriver/appframework,heyxiaoling/appframework,gravity-addiction/appframework,modulexcite/appframework,hbspatil/appframework,rockanita/appframework,SeekArt/appframework,landabaso/appframework,docnoe/appframework,jadulled/appframework,mkseva/appframework,ScalaSoft/appframework,JPithy/appframework,ishanladhani786/appframework,dongguangming/appframework,JackieWei/appframework,mrliao/appframework,Rockfogel/appframework,VIP000/appframework,vinivinilos/appframework,PuterGIrl/appframework,svdoever/appframework,XIAOGUIGUI/appframework,randy-ran/appframework,gavD/appframework,joeey1984ad/appframework,joeey1984ad/appframework,landabaso/appframework,jadulled/appframework,KeithLee208/appframework,HandMobile/appframework,handong890/appframework,3Gen-ITDev/appframework,zhukaijun/appframework,derk/appframework,VIP000/appframework,flowbywind/appframework,liuzhentao/appframework,Docworld/appframework,windyao/appframework,zhukaijun/appframework,yubingzhong/appframework,mkseva/appframework,naninha/appframework,Harryyan/appframework,ezc/appframework,mouhammad-zd/appframework,ishanladhani786/appframework,KeithLee208/appframework,Connectlegendary/appframework,haroldoramirez/appframework,xiongxiong109/appframework,docnoe/appframework,b-cuts/appframework,hnney/appframework,pengting/appframework,Hammer2014/appframework,minatocou/appframework,mastergizmo/appframework,windyao/appframework,langowskiadam/appframework,gch35pty/appframework,minatocou/appframework,bullines/appframework,busseyl/appframework,huyongliang/appframework,seekchange/appframework,nomadgit/appframework,derk/appframework,lse123/appframework,01org/appframework,intel-alex/appframework,haroldoramirez/appframework,esironal/appframework,Kuziwa/appframework,maxid/appframework,vinivinilos/appframework,huawin03/appframework,whlcly/appframework,kityandhero/appframework,Philzen/appframework,UmarMughal/appframework,jiushiliu/appframework,mev9669/appframework,lpftobetheone/appframework,LB4027221/appframework,webin/appframework,xiongxiong109/appframework,xujianrj/appframework,leokt/appframework,handong890/appframework,sbignell/appframework,iamxiaoma/appframework,larrychan/appframework,EEG5Black/appframework,szdbb1102/appframework,szdbb1102/appframework,leonlau81/appframework,yuanxin1988/appframework,elitelinux/appframework,ttym7993/appframework,Basildcruz/appframework,lesion/appframework,ScalaSoft/appframework,nosun/appframework,jailecoeu/appframework,caox/appframework,patrick-lake/appframework,bdusell/appframework,dnydoney/appframework,zipang/appframework,larrychan/appframework,xujianrj/appframework,gravity-addiction/appframework,hellovip/appframework,zhengcq315/appframework,langowskiadam/appframework,macong/appframework,sihai/appframework,chengyan1215/appframework,fjzdjd/appframework,topishka/appframework,donvan/appframework,dongguangming/appframework,327326724/appframework,Julienedies/appframework,dizzydriver/appframework,eagle-one78/appframework,pengting/appframework,RobertoMalatesta/appframework,hozwe/appframework,weiwei03/appframework,modulexcite/appframework,talha7o/appframework,heyxiaoling/appframework,qicrosoft/appframework,donvan/appframework,FortschrittApps/appframework,WilliamRen/appframework,01org/appframework,pranay06b/appframework,Docworld/appframework,feilwang/appframework,yreme/appframework,WilliamRen/appframework,zhengcq315/appframework,vincent1988/appframework,BurhanRahmani/appframework,areeftee/appframework,ilaorou/appframework,madebysoren/appframework,naninha/appframework,JPithy/appframework,Kuziwa/appframework,ImCodeMonkey/appframework,ezc/appframework,maxid/appframework,Allan0815/appframework,htsnet/appframework,lesion/appframework,327326724/appframework,yeahsj/appframework,leonlau81/appframework,zhaofeng555/appframework,joenjuki/appframework,jiabier/appframework,eliassun/appframework,eliassun/appframework,svdoever/appframework,Julienedies/appframework,eagle-one78/appframework,ouyanghuangzheng/appframework,Authorlove/appframework,feilwang/appframework,RobertoMalatesta/appframework,11com7/appframework2,huq2015/appframework,iHaD/appframework,zhuxj/appframework,mastergizmo/appframework,zhuxj/appframework,iamshenhua/appframework,boytek/appframework,webin/appframework,qq40660/appframework,mrliao/appframework,macong/appframework,fjzdjd/appframework,Harryyan/appframework,wl-pro/appframework,dnydoney/appframework,hbspatil/appframework,esironal/appframework,patrick-lake/appframework,jailecoeu/appframework,ssqstone/appframework,intel-alex/appframework,qinlicang/appframework,areeftee/appframework,seekchange/appframework,duhaibo0404/appframework,caox/appframework,11com7/appframework2,boytek/appframework,joenjuki/appframework,mouhammad-zd/appframework,Allan0815/appframework,Rockfogel/appframework,gto999/appframework,cainianhua/appframework,picsize/appframework,FortschrittApps/appframework,zamelsky/appframework,krisrak/appframework,chinakids/appframework,UmarMughal/appframework,shichuanwang/appframework,qq40660/appframework,eworthcms/appframework,yubingzhong/appframework