Trace request cid fail doc not visible error (#12035)
Trace request cid fail doc not visible error (#12035)

* trace request cid fail doc not visible error

* fix type check

* catch earlier

* rewrite

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