fix amp-accordion: always return non-null sessionState (#6488)
fix amp-accordion: always return non-null sessionState (#6488)

* check for null

* use ?

* tighten type check

kixer-com/amphtml,koshka/amphtml,bpaduch/amphtml,camelburrito/amphtml,zhouyx/amphtml,cvializ/amphtml,DAC-f1h-dev/amphtml,powdercloud/amphtml,sriramkrish85/amphtml,yieldbot/amphtml,taboola/amphtml,lzanol/amphtml,nexxtv/amphtml,mhc-gh/amphtml,yieldmo/amphtml,chaveznvg/amphtml,zhangsu/amphtml,src-code/amphtml,danielrozenberg/amphtml,kamtschatka/amphtml,chaveznvg/amphtml,sklobovskaya/amphtml,donttrustthisbot/amphtml,honeybadgerdontcare/amphtml,vmarteev/amphtml,kmh287/amphtml,rsimha-amp/amphtml,JuliusThms/amphtml,comScore/amphtml,bpaduch/amphtml,jdelhommeau/amphtml,DistroScale/amphtml,dotandads/amphtml,sebastianbenz/amphtml,jpettitt/amphtml,zhouyx/amphtml,sortable/amphtml,rsimha-amp/amphtml,powdercloud/amphtml,yieldmo/amphtml,erwinmombay/amphtml,cory-work/amphtml,cvializ/amphtml,jridgewell/amphtml,camelburrito/amphtml,cory-work/amphtml,sriramkrish85/amphtml,laterpay/amphtml,jpettitt/amphtml,cvializ/amphtml,Adtoma/amphtml,koshka/amphtml,jridgewell/amphtml,bpaduch/amphtml,tlong2/amphtml,jmadler/amphtml,zhouyx/amphtml,keithwrightbos/amphtml,sklobovskaya/amphtml,src-code/amphtml,sriramkrish85/amphtml,mhc-gh/amphtml,smartadserver/amphtml,Gregable/amphtml,kixer-com/amphtml,Gregable/amphtml,jridgewell/amphtml,vmarteev/amphtml,lannka/amphtml,Mobusi-ads/amphtml,yieldbot/amphtml,arealit/amphtml,pedjoni8/amphtml,rsimha-amp/amphtml,adup-tech/amphtml,yandex-pcode/amphtml,wjfang/amphtml,erwinmombay/amphtml,kixer-com/amphtml,pietergreyling/amphtml,lzanol/amphtml,zhucl/amphtml,camelburrito/amphtml,keithwrightbos/amphtml,adup-tech/amphtml,vmarteev/amphtml,cory-work/amphtml,dotandads/amphtml,taboola/amphtml,zhouyx/amphtml,gumgum/amphtml,dotandads/amphtml,zhangsu/amphtml,sharethrough/amphtml,alanorozco/amphtml,koshka/amphtml,JuliusThms/amphtml,prateekbh/amphtml,zhangsu/amphtml,fullspeed-sp/amphtml,honeybadgerdontcare/amphtml,BenDz/amphtml,zhucl/amphtml,JuliusThms/amphtml,zhangsu/amphtml,mlb7687/amphtml,zhouyx/amphtml,kamtschatka/amphtml,yieldmo/amphtml,camelburrito/amphtml,BenDz/amphtml,voyagegroup/amphtml,burtcorp/amphtml,powdercloud/amphtml,chaveznvg/amphtml,jpettitt/amphtml,Adtoma/amphtml,DarXector/amphtml,sortable/amphtml,media-net/amphtml,JuliusThms/amphtml,erwinmombay/amphtml,triplelift/amphtml,keithwrightbos/amphtml,shawnbuso/amphtml,camelburrito/amphtml,dotandads/amphtml,src-code/amphtml,media-net/amphtml,aghassemi/amphtml,adiant/amphtml,yandex-pcode/amphtml,erwinmombay/amphtml,danielrozenberg/amphtml,kmh287/amphtml,BenDz/amphtml,yieldmo/amphtml,techhtml/amphtml,gumgum/amphtml,mhc-gh/amphtml,danielrozenberg/amphtml,kmh287/amphtml,techhtml/amphtml,DarXector/amphtml,bpaduch/amphtml,jpettitt/amphtml,src-code/amphtml,rlugojr/amphtml,DistroScale/amphtml,smartadserver/amphtml,Mobusi-ads/amphtml,lannka/amphtml,engtat/amphtml,yieldbot/amphtml,wjfang/amphtml,honeybadgerdontcare/amphtml,ampproject/amphtml,voyagegroup/amphtml,voyagegroup/amphtml,sklobovskaya/amphtml,ecoron/amphtml,honeybadgerdontcare/amphtml,taboola/amphtml,sklobovskaya/amphtml,shawnbuso/amphtml,arealit/amphtml,dotandads/amphtml,shawnbuso/amphtml,Gregable/amphtml,jmadler/amphtml,keithwrightbos/amphtml,arealit/amphtml,prateekbh/amphtml,danielrozenberg/amphtml,widespace-os/amphtml,smartadserver/amphtml,sebastianbenz/amphtml,yieldmo/amphtml,Mobusi-ads/amphtml,fullspeed-sp/amphtml,yandex-pcode/amphtml,luciancrasovan/amphtml,mhc-gh/amphtml,camelburrito/amphtml,jmadler/amphtml,rajkumarsrk/amphtml,arealit/amphtml,zhouyx/amphtml,jpettitt/amphtml,ADITION/amphtml,triplelift/amphtml,nexxtv/amphtml,donttrustthisbot/amphtml,engtat/amphtml,rajkumarsrk/amphtml,arealit/amphtml,Adtoma/amphtml,koshka/amphtml,rajkumarsrk/amphtml,tlong2/amphtml,media-net/amphtml,DarXector/amphtml,sriramkrish85/amphtml,kmh287/amphtml,interspacejp/amphtml,kmh287/amphtml,rajkumarsrk/amphtml,yieldmo/amphtml,voyagegroup/amphtml,taboola/amphtml,jpettitt/amphtml,arealit/amphtml,gumgum/amphtml,jmadler/amphtml,rlugojr/amphtml,smartadserver/amphtml,zhangsu/amphtml,ADITION/amphtml,clawr/amphtml,DistroScale/amphtml,donttrustthisbot/amphtml,BenDz/amphtml,engtat/amphtml,yandex-pcode/amphtml,media-net/amphtml,jridgewell/amphtml,zhucl/amphtml,pietergreyling/amphtml,Mobusi-ads/amphtml,erwinmombay/amphtml,alanorozco/amphtml,wjfang/amphtml,donttrustthisbot/amphtml,alanorozco/amphtml,techhtml/amphtml,wjfang/amphtml,ecoron/amphtml,gumgum/amphtml,rlugojr/amphtml,alanorozco/amphtml,avimehta/amphtml,jdelhommeau/amphtml,keithwrightbos/amphtml,spotxchange/amphtml,powdercloud/amphtml,cvializ/amphtml,sharethrough/amphtml,prateekbh/amphtml,danielrozenberg/amphtml,DistroScale/amphtml,sortable/amphtml,clawr/amphtml,ecoron/amphtml,danielrozenberg/amphtml,smartadserver/amphtml,triplelift/amphtml,donttrustthisbot/amphtml,cvializ/amphtml,tlong2/amphtml,comScore/amphtml,interspacejp/amphtml,Adtoma/amphtml,erwinmombay/amphtml,dotandads/amphtml,DAC-f1h-dev/amphtml,nexxtv/amphtml,burtcorp/amphtml,techhtml/amphtml,alanorozco/amphtml,nexxtv/amphtml,rajkumarsrk/amphtml,shawnbuso/amphtml,spotxchange/amphtml,taboola/amphtml,DistroScale/amphtml,laterpay/amphtml,voyagegroup/amphtml,Adtoma/amphtml,luciancrasovan/amphtml,laterpay/amphtml,sortable/amphtml,Mobusi-ads/amphtml,ADITION/amphtml,koshka/amphtml,sklobovskaya/amphtml,cory-work/amphtml,sharethrough/amphtml,zhucl/amphtml,tlong2/amphtml,clawr/amphtml,ADITION/amphtml,pietergreyling/amphtml,arealit/amphtml,ampproject/amphtml,adup-tech/amphtml,wjfang/amphtml,ecoron/amphtml,nexxtv/amphtml,lannka/amphtml,burtcorp/amphtml,Adtoma/amphtml,engtat/amphtml,fullspeed-sp/amphtml,lannka/amphtml,rsimha-amp/amphtml,src-code/amphtml,triplelift/amphtml,Gregable/amphtml,kamtschatka/amphtml,mhc-gh/amphtml,DAC-f1h-dev/amphtml,lzanol/amphtml,DistroScale/amphtml,sortable/amphtml,media-net/amphtml,techhtml/amphtml,mlb7687/amphtml,clawr/amphtml,sebastianbenz/amphtml,DAC-f1h-dev/amphtml,donttrustthisbot/amphtml,donttrustthisbot/amphtml,avimehta/amphtml,pedjoni8/amphtml,adiant/amphtml,tlong2/amphtml,sebastianbenz/amphtml,avimehta/amphtml,fullspeed-sp/amphtml,pedjoni8/amphtml,kmh287/amphtml,kamtschatka/amphtml,DarXector/amphtml,sharethrough/amphtml,kamtschatka/amphtml,lannka/amphtml,mlb7687/amphtml,spotxchange/amphtml,bpaduch/amphtml,pedjoni8/amphtml,luciancrasovan/amphtml,Gregable/amphtml,DarXector/amphtml,cory-work/amphtml,comScore/amphtml,jdelhommeau/amphtml,gumgum/amphtml,rlugojr/amphtml,rajkumarsrk/amphtml,ampproject/amphtml,danielrozenberg/amphtml,avimehta/amphtml,fullspeed-sp/amphtml,DAC-f1h-dev/amphtml,ampproject/amphtml,widespace-os/amphtml,mlb7687/amphtml,zhouyx/amphtml,jpettitt/amphtml,jdelhommeau/amphtml,comScore/amphtml,lannka/amphtml,comScore/amphtml,media-net/amphtml,ampproject/amphtml,widespace-os/amphtml,gumgum/amphtml,yieldmo/amphtml,adiant/amphtml,mhc-gh/amphtml,luciancrasovan/amphtml,jmadler/amphtml,yieldbot/amphtml,BenDz/amphtml,nexxtv/amphtml,keithwrightbos/amphtml,sebastianbenz/amphtml,ampproject/amphtml,luciancrasovan/amphtml,kamtschatka/amphtml,nexxtv/amphtml,BenDz/amphtml,taboola/amphtml,laterpay/amphtml,powdercloud/amphtml,jpettitt/amphtml,ADITION/amphtml,smartadserver/amphtml,pietergreyling/amphtml,engtat/amphtml,jridgewell/amphtml,cvializ/amphtml,Gregable/amphtml,triplelift/amphtml,media-net/amphtml,luciancrasovan/amphtml,mhc-gh/amphtml,yieldbot/amphtml,kixer-com/amphtml,adup-tech/amphtml,clawr/amphtml,tlong2/amphtml,widespace-os/amphtml,widespace-os/amphtml,powdercloud/amphtml,triplelift/amphtml,laterpay/amphtml,zhucl/amphtml,prateekbh/amphtml,jridgewell/amphtml,rajkumarsrk/amphtml,burtcorp/amphtml,sharethrough/amphtml,mlb7687/amphtml,honeybadgerdontcare/amphtml,yandex-pcode/amphtml,powdercloud/amphtml,ecoron/amphtml,alanorozco/amphtml,bpaduch/amphtml,alanorozco/amphtml,JuliusThms/amphtml,wjfang/amphtml,camelburrito/amphtml,sklobovskaya/amphtml,lzanol/amphtml,widespace-os/amphtml,jdelhommeau/amphtml,alanorozco/amphtml,chaveznvg/amphtml,honeybadgerdontcare/amphtml,lannka/amphtml,ecoron/amphtml,cory-work/amphtml,engtat/amphtml,spotxchange/amphtml,sriramkrish85/amphtml,koshka/amphtml,luciancrasovan/amphtml,keithwrightbos/amphtml,cory-work/amphtml,shawnbuso/amphtml,laterpay/amphtml,media-net/amphtml,aghassemi/amphtml,sebastianbenz/amphtml,pietergreyling/amphtml,zhucl/amphtml,rlugojr/amphtml,Gregable/amphtml,ampproject/amphtml,comScore/amphtml,voyagegroup/amphtml,lzanol/amphtml,pietergreyling/amphtml,mhc-gh/amphtml,pedjoni8/amphtml,prateekbh/amphtml,adiant/amphtml,techhtml/amphtml,prateekbh/amphtml,kixer-com/amphtml,vmarteev/amphtml,DAC-f1h-dev/amphtml,yieldbot/amphtml,adiant/amphtml,adiant/amphtml,interspacejp/amphtml,spotxchange/amphtml,shawnbuso/amphtml,sharethrough/amphtml,interspacejp/amphtml,sriramkrish85/amphtml,rsimha-amp/amphtml,engtat/amphtml,clawr/amphtml,mlb7687/amphtml,lzanol/amphtml,honeybadgerdontcare/amphtml,aghassemi/amphtml,burtcorp/amphtml,avimehta/amphtml,bpaduch/amphtml,avimehta/amphtml,vmarteev/amphtml,yandex-pcode/amphtml,JuliusThms/amphtml,sortable/amphtml,rsimha-amp/amphtml,zhangsu/amphtml,shawnbuso/amphtml,pedjoni8/amphtml,yandex-pcode/amphtml,clawr/amphtml,aghassemi/amphtml,fullspeed-sp/amphtml,rsimha-amp/amphtml,Mobusi-ads/amphtml,Gregable/amphtml,wjfang/amphtml,taboola/amphtml,kixer-com/amphtml,vmarteev/amphtml,src-code/amphtml,chaveznvg/amphtml,adup-tech/amphtml,aghassemi/amphtml,adup-tech/amphtml,danielrozenberg/amphtml,interspacejp/amphtml,ampproject/amphtml,jdelhommeau/amphtml,prateekbh/amphtml,sklobovskaya/amphtml,adiant/amphtml,vmarteev/amphtml,rlugojr/amphtml,burtcorp/amphtml,jmadler/amphtml,gumgum/amphtml,spotxchange/amphtml,interspacejp/amphtml,zhucl/amphtml,aghassemi/amphtml,comScore/amphtml,jridgewell/amphtml,kixer-com/amphtml,DarXector/amphtml,chaveznvg/amphtml,voyagegroup/amphtml