Fix method .returning() and check if Promise exists before polyfilling it. (#9590)
Fix method .returning() and check if Promise exists before polyfilling it. (#9590)

* Check if Promise exists and fix returning

* Remove the bluebird check

martinduparc/DefinitelyTyped,yuit/DefinitelyTyped,johan-gorter/DefinitelyTyped,use-strict/DefinitelyTyped,borisyankov/DefinitelyTyped,mattblang/DefinitelyTyped,isman-usoh/DefinitelyTyped,aciccarello/DefinitelyTyped,abner/DefinitelyTyped,slavomirvojacek/DefinitelyTyped,dsebastien/DefinitelyTyped,HPFOD/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,rolandzwaga/DefinitelyTyped,minodisk/DefinitelyTyped,arma-gast/DefinitelyTyped,gandjustas/DefinitelyTyped,pocesar/DefinitelyTyped,scriby/DefinitelyTyped,chrootsu/DefinitelyTyped,musicist288/DefinitelyTyped,isman-usoh/DefinitelyTyped,abbasmhd/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,laurentiustamate94/DefinitelyTyped,alexdresko/DefinitelyTyped,arusakov/DefinitelyTyped,damianog/DefinitelyTyped,martinduparc/DefinitelyTyped,florentpoujol/DefinitelyTyped,shlomiassaf/DefinitelyTyped,amanmahajan7/DefinitelyTyped,magny/DefinitelyTyped,progre/DefinitelyTyped,minodisk/DefinitelyTyped,raijinsetsu/DefinitelyTyped,hellopao/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,micurs/DefinitelyTyped,psnider/DefinitelyTyped,florentpoujol/DefinitelyTyped,one-pieces/DefinitelyTyped,newclear/DefinitelyTyped,ashwinr/DefinitelyTyped,jimthedev/DefinitelyTyped,Ptival/DefinitelyTyped,subash-a/DefinitelyTyped,YousefED/DefinitelyTyped,use-strict/DefinitelyTyped,nainslie/DefinitelyTyped,nycdotnet/DefinitelyTyped,jimthedev/DefinitelyTyped,chrootsu/DefinitelyTyped,xStrom/DefinitelyTyped,danfma/DefinitelyTyped,Ptival/DefinitelyTyped,xStrom/DefinitelyTyped,GiedriusGrabauskas/DefinitelyTyped,raijinsetsu/DefinitelyTyped,georgemarshall/DefinitelyTyped,alvarorahul/DefinitelyTyped,DzmitryDulko/DefinitelyTyped,schmuli/DefinitelyTyped,donnut/DefinitelyTyped,slavomirvojacek/adbrain-typescript-definitions,sledorze/DefinitelyTyped,mcrawshaw/DefinitelyTyped,AgentME/DefinitelyTyped,syuilo/DefinitelyTyped,martinduparc/DefinitelyTyped,aciccarello/DefinitelyTyped,mcliment/DefinitelyTyped,EnableSoftware/DefinitelyTyped,QuatroCode/DefinitelyTyped,jraymakers/DefinitelyTyped,borisyankov/DefinitelyTyped,frogcjn/DefinitelyTyped,hellopao/DefinitelyTyped,rcchen/DefinitelyTyped,GiedriusGrabauskas/DefinitelyTyped,nainslie/DefinitelyTyped,daptiv/DefinitelyTyped,zuzusik/DefinitelyTyped,psnider/DefinitelyTyped,chrismbarr/DefinitelyTyped,georgemarshall/DefinitelyTyped,johan-gorter/DefinitelyTyped,arusakov/DefinitelyTyped,schmuli/DefinitelyTyped,EnableSoftware/DefinitelyTyped,benishouga/DefinitelyTyped,schmuli/DefinitelyTyped,progre/DefinitelyTyped,DzmitryDulko/DefinitelyTyped,smrq/DefinitelyTyped,alexdresko/DefinitelyTyped,jimthedev/DefinitelyTyped,gcastre/DefinitelyTyped,benishouga/DefinitelyTyped,danfma/DefinitelyTyped,mattblang/DefinitelyTyped,magny/DefinitelyTyped,AgentME/DefinitelyTyped,frogcjn/DefinitelyTyped,smrq/DefinitelyTyped,gcastre/DefinitelyTyped,rolandzwaga/DefinitelyTyped,subash-a/DefinitelyTyped,psnider/DefinitelyTyped,amanmahajan7/DefinitelyTyped,HPFOD/DefinitelyTyped,AgentME/DefinitelyTyped,slavomirvojacek/adbrain-typescript-definitions,yuit/DefinitelyTyped,donnut/DefinitelyTyped,shlomiassaf/DefinitelyTyped,pocesar/DefinitelyTyped,hellopao/DefinitelyTyped,aciccarello/DefinitelyTyped,mcrawshaw/DefinitelyTyped,sledorze/DefinitelyTyped,dsebastien/DefinitelyTyped,nycdotnet/DefinitelyTyped,abbasmhd/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,georgemarshall/DefinitelyTyped,zuzusik/DefinitelyTyped,slavomirvojacek/DefinitelyTyped,gandjustas/DefinitelyTyped,jraymakers/DefinitelyTyped,abner/DefinitelyTyped,pocesar/DefinitelyTyped,YousefED/DefinitelyTyped,QuatroCode/DefinitelyTyped,ashwinr/DefinitelyTyped,rcchen/DefinitelyTyped,arma-gast/DefinitelyTyped,paulmorphy/DefinitelyTyped,alvarorahul/DefinitelyTyped,benishouga/DefinitelyTyped,zuzusik/DefinitelyTyped,arusakov/DefinitelyTyped,damianog/DefinitelyTyped,paulmorphy/DefinitelyTyped,syuilo/DefinitelyTyped,Penryn/DefinitelyTyped,newclear/DefinitelyTyped,amir-arad/DefinitelyTyped,markogresak/DefinitelyTyped,benliddicott/DefinitelyTyped,scriby/DefinitelyTyped,chrismbarr/DefinitelyTyped,Penryn/DefinitelyTyped