Use try catch to protect querySelector (#12734)
Use try catch to protect querySelector (#12734)

* use try catch to protect querySelector

* only send one error

* reorder

clawr/amphtml,kamtschatka/amphtml,rsimha-amp/amphtml,zhouyx/amphtml,sriramkrish85/amphtml,tlong2/amphtml,lannka/amphtml,jridgewell/amphtml,donttrustthisbot/amphtml,smartadserver/amphtml,voyagegroup/amphtml,ampproject/amphtml,taboola/amphtml,pedjoni8/amphtml,voyagegroup/amphtml,ampproject/amphtml,cory-work/amphtml,yieldbot/amphtml,camelburrito/amphtml,media-net/amphtml,jridgewell/amphtml,Gregable/amphtml,kamtschatka/amphtml,honeybadgerdontcare/amphtml,mhc-gh/amphtml,pedjoni8/amphtml,jpettitt/amphtml,rsimha-amp/amphtml,powdercloud/amphtml,jpettitt/amphtml,bpaduch/amphtml,techhtml/amphtml,nexxtv/amphtml,taboola/amphtml,src-code/amphtml,nexxtv/amphtml,sharethrough/amphtml,sebastianbenz/amphtml,lannka/amphtml,sebastianbenz/amphtml,BenDz/amphtml,prateekbh/amphtml,media-net/amphtml,cory-work/amphtml,Gregable/amphtml,danielrozenberg/amphtml,bpaduch/amphtml,tlong2/amphtml,honeybadgerdontcare/amphtml,zhangsu/amphtml,cory-work/amphtml,widespace-os/amphtml,aghassemi/amphtml,widespace-os/amphtml,engtat/amphtml,luciancrasovan/amphtml,widespace-os/amphtml,jmadler/amphtml,dotandads/amphtml,BenDz/amphtml,erwinmombay/amphtml,camelburrito/amphtml,kamtschatka/amphtml,media-net/amphtml,yandex-pcode/amphtml,BenDz/amphtml,smartadserver/amphtml,luciancrasovan/amphtml,mhc-gh/amphtml,ampproject/amphtml,yandex-pcode/amphtml,src-code/amphtml,smartadserver/amphtml,prateekbh/amphtml,widespace-os/amphtml,ampproject/amphtml,powdercloud/amphtml,zhangsu/amphtml,zhouyx/amphtml,dotandads/amphtml,nexxtv/amphtml,yandex-pcode/amphtml,adup-tech/amphtml,techhtml/amphtml,koshka/amphtml,powdercloud/amphtml,yieldmo/amphtml,cvializ/amphtml,prateekbh/amphtml,camelburrito/amphtml,danielrozenberg/amphtml,dotandads/amphtml,BenDz/amphtml,adup-tech/amphtml,koshka/amphtml,jpettitt/amphtml,yieldmo/amphtml,danielrozenberg/amphtml,cory-work/amphtml,engtat/amphtml,widespace-os/amphtml,laterpay/amphtml,erwinmombay/amphtml,pedjoni8/amphtml,honeybadgerdontcare/amphtml,powdercloud/amphtml,aghassemi/amphtml,jpettitt/amphtml,luciancrasovan/amphtml,yandex-pcode/amphtml,cvializ/amphtml,donttrustthisbot/amphtml,bpaduch/amphtml,jmadler/amphtml,mhc-gh/amphtml,lannka/amphtml,taboola/amphtml,jmadler/amphtml,cory-work/amphtml,koshka/amphtml,sebastianbenz/amphtml,jmadler/amphtml,pedjoni8/amphtml,honeybadgerdontcare/amphtml,tlong2/amphtml,bpaduch/amphtml,sebastianbenz/amphtml,engtat/amphtml,techhtml/amphtml,sharethrough/amphtml,alanorozco/amphtml,tlong2/amphtml,engtat/amphtml,powdercloud/amphtml,nexxtv/amphtml,smartadserver/amphtml,donttrustthisbot/amphtml,voyagegroup/amphtml,camelburrito/amphtml,sriramkrish85/amphtml,nexxtv/amphtml,laterpay/amphtml,src-code/amphtml,danielrozenberg/amphtml,BenDz/amphtml,lannka/amphtml,src-code/amphtml,kamtschatka/amphtml,chaveznvg/amphtml,jpettitt/amphtml,sriramkrish85/amphtml,clawr/amphtml,sriramkrish85/amphtml,src-code/amphtml,rsimha-amp/amphtml,erwinmombay/amphtml,danielrozenberg/amphtml,jmadler/amphtml,sriramkrish85/amphtml,techhtml/amphtml,techhtml/amphtml,mhc-gh/amphtml,pedjoni8/amphtml,voyagegroup/amphtml,clawr/amphtml,kamtschatka/amphtml,BenDz/amphtml,media-net/amphtml,chaveznvg/amphtml,rsimha-amp/amphtml,sebastianbenz/amphtml,sharethrough/amphtml,Gregable/amphtml,voyagegroup/amphtml,zhangsu/amphtml,ampproject/amphtml,jridgewell/amphtml,honeybadgerdontcare/amphtml,chaveznvg/amphtml,clawr/amphtml,clawr/amphtml,yieldbot/amphtml,luciancrasovan/amphtml,honeybadgerdontcare/amphtml,zhouyx/amphtml,camelburrito/amphtml,danielrozenberg/amphtml,zhangsu/amphtml,bpaduch/amphtml,chaveznvg/amphtml,laterpay/amphtml,powdercloud/amphtml,yieldmo/amphtml,tlong2/amphtml,src-code/amphtml,yieldbot/amphtml,cvializ/amphtml,sharethrough/amphtml,cvializ/amphtml,chaveznvg/amphtml,smartadserver/amphtml,taboola/amphtml,lannka/amphtml,rsimha-amp/amphtml,taboola/amphtml,alanorozco/amphtml,zhouyx/amphtml,cory-work/amphtml,dotandads/amphtml,donttrustthisbot/amphtml,zhouyx/amphtml,mhc-gh/amphtml,prateekbh/amphtml,luciancrasovan/amphtml,luciancrasovan/amphtml,alanorozco/amphtml,jpettitt/amphtml,mhc-gh/amphtml,aghassemi/amphtml,yieldbot/amphtml,alanorozco/amphtml,aghassemi/amphtml,zhouyx/amphtml,clawr/amphtml,sriramkrish85/amphtml,media-net/amphtml,aghassemi/amphtml,powdercloud/amphtml,adup-tech/amphtml,rsimha-amp/amphtml,laterpay/amphtml,adup-tech/amphtml,engtat/amphtml,kamtschatka/amphtml,media-net/amphtml,adup-tech/amphtml,zhangsu/amphtml,yieldmo/amphtml,alanorozco/amphtml,zhouyx/amphtml,chaveznvg/amphtml,jridgewell/amphtml,clawr/amphtml,engtat/amphtml,sebastianbenz/amphtml,yieldbot/amphtml,Gregable/amphtml,koshka/amphtml,jridgewell/amphtml,erwinmombay/amphtml,jridgewell/amphtml,mhc-gh/amphtml,alanorozco/amphtml,camelburrito/amphtml,taboola/amphtml,dotandads/amphtml,cvializ/amphtml,yieldmo/amphtml,cvializ/amphtml,bpaduch/amphtml,ampproject/amphtml,jridgewell/amphtml,techhtml/amphtml,nexxtv/amphtml,nexxtv/amphtml,jmadler/amphtml,donttrustthisbot/amphtml,media-net/amphtml,taboola/amphtml,smartadserver/amphtml,yandex-pcode/amphtml,yieldmo/amphtml,luciancrasovan/amphtml,sharethrough/amphtml,laterpay/amphtml,danielrozenberg/amphtml,yandex-pcode/amphtml,sharethrough/amphtml,prateekbh/amphtml,zhangsu/amphtml,media-net/amphtml,voyagegroup/amphtml,honeybadgerdontcare/amphtml,alanorozco/amphtml,voyagegroup/amphtml,Gregable/amphtml,rsimha-amp/amphtml,donttrustthisbot/amphtml,Gregable/amphtml,koshka/amphtml,koshka/amphtml,mhc-gh/amphtml,camelburrito/amphtml,ampproject/amphtml,prateekbh/amphtml,cory-work/amphtml,lannka/amphtml,jpettitt/amphtml,danielrozenberg/amphtml,pedjoni8/amphtml,Gregable/amphtml,yieldbot/amphtml,donttrustthisbot/amphtml,yieldmo/amphtml,prateekbh/amphtml,bpaduch/amphtml,alanorozco/amphtml,widespace-os/amphtml,jpettitt/amphtml,lannka/amphtml,yandex-pcode/amphtml,erwinmombay/amphtml,aghassemi/amphtml,tlong2/amphtml,dotandads/amphtml,ampproject/amphtml,engtat/amphtml,erwinmombay/amphtml,adup-tech/amphtml,Gregable/amphtml,laterpay/amphtml