Fixes UIThread raising incorrect exceptions and causing tests to fail.
Fixes UIThread raising incorrect exceptions and causing tests to fail.

Microsoft/PTVS,denfromufa/PTVS,fjxhkj/PTVS,modulexcite/PTVS,gilbertw/PTVS,fivejjs/PTVS,DEVSENSE/PTVS,xNUTs/PTVS,Microsoft/PTVS,ChinaQuants/PTVS,MetSystem/PTVS,gilbertw/PTVS,dut3062796s/PTVS,msunardi/PTVS,fjxhkj/PTVS,alanch-ms/PTVS,MetSystem/PTVS,huguesv/PTVS,gilbertw/PTVS,MetSystem/PTVS,alanch-ms/PTVS,dut3062796s/PTVS,jkorell/PTVS,Habatchii/PTVS,MetSystem/PTVS,christer155/PTVS,jkorell/PTVS,Microsoft/PTVS,gilbertw/PTVS,Habatchii/PTVS,crwilcox/PTVS,modulexcite/PTVS,int19h/PTVS,xNUTs/PTVS,fjxhkj/PTVS,DEVSENSE/PTVS,mlorbetske/PTVS,Habatchii/PTVS,MetSystem/PTVS,crwilcox/PTVS,int19h/PTVS,denfromufa/PTVS,Habatchii/PTVS,denfromufa/PTVS,int19h/PTVS,denfromufa/PTVS,msunardi/PTVS,alanch-ms/PTVS,DEVSENSE/PTVS,int19h/PTVS,Habatchii/PTVS,juanyaw/PTVS,xNUTs/PTVS,crwilcox/PTVS,DEVSENSE/PTVS,crwilcox/PTVS,modulexcite/PTVS,jkorell/PTVS,gomiero/PTVS,huguesv/PTVS,Habatchii/PTVS,juanyaw/PTVS,xNUTs/PTVS,zooba/PTVS,jkorell/PTVS,DinoV/PTVS,modulexcite/PTVS,fjxhkj/PTVS,gomiero/PTVS,denfromufa/PTVS,juanyaw/PTVS,jkorell/PTVS,Microsoft/PTVS,bolabola/PTVS,bolabola/PTVS,juanyaw/PTVS,msunardi/PTVS,christer155/PTVS,DEVSENSE/PTVS,DinoV/PTVS,gilbertw/PTVS,DinoV/PTVS,int19h/PTVS,zooba/PTVS,fivejjs/PTVS,gomiero/PTVS,zooba/PTVS,bolabola/PTVS,huguesv/PTVS,fivejjs/PTVS,huguesv/PTVS,gomiero/PTVS,Microsoft/PTVS,ChinaQuants/PTVS,mlorbetske/PTVS,DinoV/PTVS,dut3062796s/PTVS,gomiero/PTVS,mlorbetske/PTVS,modulexcite/PTVS,int19h/PTVS,msunardi/PTVS,gomiero/PTVS,msunardi/PTVS,zooba/PTVS,juanyaw/PTVS,DEVSENSE/PTVS,denfromufa/PTVS,jkorell/PTVS,mlorbetske/PTVS,DinoV/PTVS,dut3062796s/PTVS,gilbertw/PTVS,crwilcox/PTVS,dut3062796s/PTVS,christer155/PTVS,fjxhkj/PTVS,huguesv/PTVS,christer155/PTVS,alanch-ms/PTVS,dut3062796s/PTVS,fivejjs/PTVS,christer155/PTVS,ChinaQuants/PTVS,DinoV/PTVS,huguesv/PTVS,MetSystem/PTVS,Microsoft/PTVS,bolabola/PTVS,mlorbetske/PTVS,fivejjs/PTVS,bolabola/PTVS,ChinaQuants/PTVS,zooba/PTVS,alanch-ms/PTVS,msunardi/PTVS,ChinaQuants/PTVS,bolabola/PTVS,zooba/PTVS,juanyaw/PTVS,xNUTs/PTVS,xNUTs/PTVS,crwilcox/PTVS,ChinaQuants/PTVS,christer155/PTVS,fjxhkj/PTVS,alanch-ms/PTVS,fivejjs/PTVS,mlorbetske/PTVS,modulexcite/PTVS