doctor: use respond_to? instead of NoMethodError
doctor: use respond_to? instead of NoMethodError

Closes #47715.

Signed-off-by: Baptiste Fontaine <bfee279af59f3e3f71f7ce1fa037ea7b90f93cbf@yahoo.fr>

hongkongkiwi/homebrew,AlexejK/homebrew,liamstask/homebrew,apjanke/homebrew,Linuxbrew/linuxbrew,alebcay/homebrew,sometimesfood/homebrew,quantumsteve/homebrew,hakamadare/homebrew,ear/homebrew,muellermartin/homebrew,reelsense/homebrew,mobileoverlord/homebrew-1,mmizutani/homebrew,reelsense/homebrew,mactkg/homebrew,optikfluffel/homebrew,apjanke/homebrew,base10/homebrew,influxdb/homebrew,keith/homebrew,treyharris/homebrew,hongkongkiwi/homebrew,teslamint/homebrew,dunn/homebrew,dickeyxxx/homebrew,drewwells/homebrew,marcwebbie/homebrew,gicmo/homebrew,influxdata/homebrew,dericed/homebrew,elyscape/homebrew,chadcatlett/homebrew,zchee/homebrew,afh/homebrew,SuperNEMO-DBD/cadfaelbrew,ablyler/homebrew,ybott/homebrew,MoSal/homebrew,sferik/homebrew,hanxue/homebrew,mactkg/homebrew,treyharris/homebrew,gicmo/homebrew,benjaminfrank/homebrew,drbenmorgan/linuxbrew,osimola/homebrew,recruit-tech/homebrew,slyphon/homebrew,youtux/homebrew,jarrettmeyer/homebrew,TaylorMonacelli/homebrew,emcrisostomo/homebrew,ear/homebrew,princeofdarkness76/homebrew,yumitsu/homebrew,scorphus/homebrew,Homebrew/linuxbrew,AlexejK/homebrew,utzig/homebrew,zchee/homebrew,mmizutani/homebrew,SteveClement/homebrew,tutumcloud/homebrew,brunchboy/homebrew,scpeters/homebrew,scpeters/homebrew,lrascao/homebrew,nandub/homebrew,johanhammar/homebrew,OJFord/homebrew,pcottle/homebrew,esamson/homebrew,hongkongkiwi/homebrew,davydden/linuxbrew,OJFord/homebrew,LinusU/homebrew,dgageot/homebrew,knpwrs/homebrew,ablyler/homebrew,tschoonj/homebrew,skinny-framework/homebrew,utzig/homebrew,theeternalsw0rd/homebrew,reelsense/linuxbrew,mobileoverlord/homebrew-1,hanxue/homebrew,dutchcoders/homebrew,davydden/linuxbrew,miketheman/homebrew,davydden/linuxbrew,dalanmiller/homebrew,Asuranceturix/homebrew,emcrisostomo/homebrew,gicmo/homebrew,dunn/homebrew,Angeldude/linuxbrew,cprecioso/homebrew,ExtremeMan/homebrew,afh/homebrew,booi/homebrew,totalvoidness/homebrew,dericed/homebrew,totalvoidness/homebrew,lrascao/homebrew,influxdb/homebrew,retrography/homebrew,ear/homebrew,michaKFromParis/homebrew-sparks,Asuranceturix/homebrew,vigo/homebrew,elyscape/homebrew,miketheman/homebrew,apjanke/homebrew,lrascao/homebrew,yazuuchi/homebrew,vigo/homebrew,sferik/homebrew,ablyler/homebrew,ebouaziz/linuxbrew,bigbes/homebrew,ablyler/homebrew,frodeaa/homebrew,liamstask/homebrew,sakra/homebrew,miketheman/homebrew,gawbul/homebrew,ryanfb/homebrew,treyharris/homebrew,bukzor/linuxbrew,getgauge/homebrew,nandub/homebrew,eighthave/homebrew,miketheman/homebrew,yazuuchi/homebrew,sakra/homebrew,royhodgman/homebrew,benjaminfrank/homebrew,skinny-framework/homebrew,quantumsteve/homebrew,filcab/homebrew,mmizutani/homebrew,josa42/homebrew,dickeyxxx/homebrew,polishgeeks/homebrew,osimola/homebrew,cscetbon/homebrew,3van/homebrew,sometimesfood/homebrew,Angeldude/linuxbrew,menivaitsi/homebrew,optikfluffel/homebrew,dunn/homebrew,dericed/homebrew,kenips/homebrew,tschoonj/homebrew,iostat/homebrew2,haihappen/homebrew,utzig/homebrew,ilovezfs/homebrew,kodabb/homebrew,LinusU/homebrew,Red54/homebrew,thinker0/homebrew,mactkg/homebrew,jarrettmeyer/homebrew,haihappen/homebrew,saketkc/linuxbrew,filcab/homebrew,dgageot/homebrew,pdxdan/homebrew,vigo/homebrew,kodabb/homebrew,Homebrew/homebrew,iandennismiller/homebrew,gnubila-france/linuxbrew,sjackman/linuxbrew,pcottle/homebrew,3van/homebrew,redpen-cc/homebrew,adamliter/homebrew,dongcarl/homebrew,haihappen/homebrew,michaKFromParis/homebrew-sparks,tutumcloud/homebrew,DoomHammer/linuxbrew,joshfriend/homebrew,knpwrs/homebrew,mactkg/homebrew,scorphus/homebrew,marcwebbie/homebrew,Homebrew/homebrew,OJFord/homebrew,sakra/homebrew,marcwebbie/homebrew,recruit-tech/homebrew,muellermartin/homebrew,kodabb/homebrew,SuperNEMO-DBD/cadfaelbrew,ryanfb/homebrew,polishgeeks/homebrew,alebcay/homebrew,MoSal/homebrew,getgauge/homebrew,SteveClement/homebrew,arnested/homebrew,ralic/homebrew,Homebrew/linuxbrew,redpen-cc/homebrew,mkrapp/homebrew,utzig/homebrew,gawbul/homebrew,vigo/homebrew,gicmo/homebrew,Chilledheart/homebrew,danieroux/homebrew,theeternalsw0rd/homebrew,eighthave/homebrew,jarrettmeyer/homebrew,skinny-framework/homebrew,galaxy001/homebrew,MoSal/homebrew,ybott/homebrew,georgschoelly/homebrew,ebouaziz/linuxbrew,ilovezfs/homebrew,theeternalsw0rd/homebrew,LinusU/homebrew,davydden/linuxbrew,SteveClement/homebrew,dalanmiller/homebrew,jsjohnst/homebrew,galaxy001/homebrew,elgertam/homebrew,scpeters/homebrew,benjaminfrank/homebrew,apjanke/homebrew,tschoonj/homebrew,Asuranceturix/homebrew,ExtremeMan/homebrew,influxdb/homebrew,polishgeeks/homebrew,hanxue/homebrew,DoomHammer/linuxbrew,Homebrew/linuxbrew,thinker0/homebrew,totalvoidness/homebrew,menivaitsi/homebrew,sferik/homebrew,menivaitsi/homebrew,menivaitsi/homebrew,scorphus/homebrew,teslamint/homebrew,dongcarl/homebrew,elyscape/homebrew,ilovezfs/homebrew,cprecioso/homebrew,johanhammar/homebrew,retrography/homebrew,ryanfb/homebrew,ento/homebrew,MoSal/homebrew,deorth/homebrew,liamstask/homebrew,pdxdan/homebrew,elgertam/homebrew,nandub/homebrew,OJFord/homebrew,ryanfb/homebrew,ear/homebrew,quantumsteve/homebrew,josa42/homebrew,3van/homebrew,cosmo0920/homebrew,MartinDelille/homebrew,sjackman/linuxbrew,retrography/homebrew,dickeyxxx/homebrew,teslamint/homebrew,SteveClement/homebrew,dutchcoders/homebrew,base10/homebrew,muellermartin/homebrew,johanhammar/homebrew,yazuuchi/homebrew,cprecioso/homebrew,SuperNEMO-DBD/cadfaelbrew,yazuuchi/homebrew,pcottle/homebrew,adamliter/homebrew,hakamadare/homebrew,muellermartin/homebrew,sjackman/linuxbrew,3van/homebrew,MartinDelille/homebrew,royhodgman/homebrew,afh/homebrew,influxdata/homebrew,dplarson/homebrew,gawbul/homebrew,kevinastone/homebrew,galaxy001/homebrew,afh/homebrew,drbenmorgan/linuxbrew,elyscape/homebrew,redpen-cc/homebrew,AlexejK/homebrew,osimola/homebrew,skinny-framework/homebrew,theeternalsw0rd/homebrew,Homebrew/homebrew,filcab/homebrew,haihappen/homebrew,sjackman/linuxbrew,hakamadare/homebrew,gnubila-france/linuxbrew,ento/homebrew,drewwells/homebrew,slyphon/homebrew,influxdb/homebrew,treyharris/homebrew,Homebrew/homebrew,nandub/homebrew,jamer/homebrew,booi/homebrew,emcrisostomo/homebrew,liamstask/homebrew,bukzor/linuxbrew,keith/homebrew,cprecioso/homebrew,jamer/homebrew,jconley/homebrew,SteveClement/homebrew,dutchcoders/homebrew,thinker0/homebrew,skatsuta/homebrew,cosmo0920/homebrew,tschoonj/homebrew,BrewTestBot/homebrew,iandennismiller/homebrew,influxdata/homebrew,knpwrs/homebrew,jsjohnst/homebrew,esamson/homebrew,dutchcoders/homebrew,Chilledheart/homebrew,jconley/homebrew,MartinDelille/homebrew,iostat/homebrew2,BrewTestBot/homebrew,joshfriend/homebrew,princeofdarkness76/homebrew,ybott/homebrew,drewwells/homebrew,getgauge/homebrew,dickeyxxx/homebrew,osimola/homebrew,kodabb/homebrew,feelpp/homebrew,Red54/homebrew,dplarson/homebrew,galaxy001/homebrew,sferik/homebrew,BrewTestBot/homebrew,georgschoelly/homebrew,decors/homebrew,DoomHammer/linuxbrew,michaKFromParis/homebrew-sparks,pdxdan/homebrew,teslamint/homebrew,Linuxbrew/linuxbrew,arnested/homebrew,hakamadare/homebrew,mmizutani/homebrew,reelsense/homebrew,reelsense/homebrew,drbenmorgan/linuxbrew,marcwebbie/homebrew,base10/homebrew,optikfluffel/homebrew,eighthave/homebrew,brunchboy/homebrew,bukzor/linuxbrew,jconley/homebrew,dericed/homebrew,iostat/homebrew2,danieroux/homebrew,iandennismiller/homebrew,base10/homebrew,skatsuta/homebrew,kevinastone/homebrew,elgertam/homebrew,influxdata/homebrew,jamer/homebrew,zchee/homebrew,bukzor/linuxbrew,ExtremeMan/homebrew,brunchboy/homebrew,jarrettmeyer/homebrew,dalanmiller/homebrew,drbenmorgan/linuxbrew,slyphon/homebrew,mobileoverlord/homebrew-1,dalanmiller/homebrew,yumitsu/homebrew,feelpp/homebrew,quantumsteve/homebrew,decors/homebrew,booi/homebrew,josa42/homebrew,ebouaziz/linuxbrew,thinker0/homebrew,bigbes/homebrew,tutumcloud/homebrew,youtux/homebrew,sometimesfood/homebrew,Angeldude/linuxbrew,eighthave/homebrew,reelsense/linuxbrew,getgauge/homebrew,ilovezfs/homebrew,dongcarl/homebrew,sakra/homebrew,recruit-tech/homebrew,cosmo0920/homebrew,ralic/homebrew,kenips/homebrew,deorth/homebrew,optikfluffel/homebrew,saketkc/linuxbrew,scpeters/homebrew,tutumcloud/homebrew,BrewTestBot/homebrew,Homebrew/linuxbrew,chadcatlett/homebrew,frodeaa/homebrew,decors/homebrew,georgschoelly/homebrew,jconley/homebrew,saketkc/linuxbrew,ento/homebrew,jamer/homebrew,saketkc/linuxbrew,Asuranceturix/homebrew,iostat/homebrew2,dgageot/homebrew,dunn/homebrew,drewwells/homebrew,mkrapp/homebrew,mkrapp/homebrew,arnested/homebrew,cosmo0920/homebrew,LinusU/homebrew,slyphon/homebrew,alebcay/homebrew,retrography/homebrew,benjaminfrank/homebrew,Chilledheart/homebrew,Red54/homebrew,royhodgman/homebrew,TaylorMonacelli/homebrew,bigbes/homebrew,keith/homebrew,dgageot/homebrew,TaylorMonacelli/homebrew,kevinastone/homebrew,chadcatlett/homebrew,feelpp/homebrew,filcab/homebrew,gnubila-france/linuxbrew,dplarson/homebrew,alebcay/homebrew,kenips/homebrew,georgschoelly/homebrew,frodeaa/homebrew,pdxdan/homebrew,ento/homebrew,skatsuta/homebrew,pcottle/homebrew,Angeldude/linuxbrew,ybott/homebrew,redpen-cc/homebrew,AlexejK/homebrew,bigbes/homebrew,adamliter/homebrew,kenips/homebrew,yumitsu/homebrew,MartinDelille/homebrew,danieroux/homebrew,princeofdarkness76/homebrew,cscetbon/homebrew,knpwrs/homebrew,Chilledheart/homebrew,totalvoidness/homebrew,deorth/homebrew,joshfriend/homebrew,Red54/homebrew,ralic/homebrew,ebouaziz/linuxbrew,jsjohnst/homebrew,DoomHammer/linuxbrew,skatsuta/homebrew,gnubila-france/linuxbrew,Linuxbrew/linuxbrew,dongcarl/homebrew,frodeaa/homebrew,esamson/homebrew,jsjohnst/homebrew,royhodgman/homebrew,cscetbon/homebrew,hongkongkiwi/homebrew,iandennismiller/homebrew,Linuxbrew/linuxbrew,princeofdarkness76/homebrew,youtux/homebrew,ExtremeMan/homebrew,zchee/homebrew,mobileoverlord/homebrew-1,youtux/homebrew,SuperNEMO-DBD/cadfaelbrew,esamson/homebrew,sometimesfood/homebrew,keith/homebrew,emcrisostomo/homebrew,recruit-tech/homebrew,dplarson/homebrew,ralic/homebrew,danieroux/homebrew,arnested/homebrew,hanxue/homebrew,kevinastone/homebrew,feelpp/homebrew,Asuranceturix/homebrew,adamliter/homebrew,brunchboy/homebrew,TaylorMonacelli/homebrew,decors/homebrew,elgertam/homebrew,johanhammar/homebrew,reelsense/linuxbrew,pcottle/homebrew,polishgeeks/homebrew,scorphus/homebrew,reelsense/linuxbrew