Fix the logic that checks for existing reboot pending in reboot pending tests.
Fix the logic that checks for existing reboot pending in reboot pending tests.

onlyhavecans/chef,tas50/chef-1,webframp/chef,smurawski/chef,polamjag/chef,erkolson/chef,onlyhavecans/chef,adamleff/chef,Ppjet6/chef,grubernaut/chef,jblaine/chef,jagdeesh109/chef,ekometti/chef,BackSlasher/chef,joemiller/chef,OpSitters/chef,zshuo/chef,natewalck/chef,brettcave/chef,h4ck3rm1k3/chef,aaron-lane/chef,Tensibai/chef,juliandunn/chef,docwhat/chef,nvwls/chef,strangelittlemonkey/chef,sideci-sample/sideci-sample-chef,faspl/chef,mio-g/chef,sometimesfood/chef,circleback/chef,faspl/chef,Kast0rTr0y/chef,BackSlasher/chef,legal90/chef,ktpan/chef-play,jkerry/chef,aaron-lane/chef,youngjl1/chef,gsaslis/chef,robmul/chef,legal90/chef,nalingarg2/chef-1,jk47/chef,jonlives/chef,baberthal/chef,mikedodge04/chef,DeWaRs1206/chef,zshuo/chef,pburkholder/chef,tas50/chef-1,malisettirammurthy/chef,andrewpsp/chef,robmul/chef,someara/chef,tbriggs-curse/chef,jmhardison/chef,jagdeesh109/chef,webframp/chef,jimmymccrory/chef,3dinfluence/chef,tbriggs-curse/chef,ChaosCloud/chef,clintoncwolfe/chef,ckaushik/chef,Igorshp/chef,criteo-forks/chef,martinisoft/chef,jonlives/chef,andrewpsp/chef,zuazo-forks/chef,mattray/chef,higanworks/chef,askl56/chef,skmichaelson/chef,sanditiffin/chef,gene1wood/chef,cachamber/chef,cgvarela/chef,nguyen-tien-mulodo/chef,polamjag/chef,ccsplit/chef,martinb3/chef,cachamber/chef,cachamber/chef,polamjag/chef,karthikrev/chef,brettcave/chef,3dinfluence/chef,jimmymccrory/chef,zshuo/chef,OpSitters/chef,lamont-granquist/chef,jagdeesh109/chef,Ppjet6/chef,aaron-lane/chef,karthikrev/chef,mikefaille/chef,ckaushik/chef,mal/chef,grubernaut/chef,kaznishi/chef,ducthanh/chef,brettcave/chef,EasonYi/chef,renanvicente/chef,cmluciano/chef,jkerry/chef,MichaelPereira/chef,ducthanh/chef,mikefaille/chef,docwhat/chef,nicklv/chef,onlyhavecans/chef,permyakovsv/chef,pburkholder/chef,ChaosCloud/chef,cgvarela/chef,Kast0rTr0y/chef,Ppjet6/chef,kaznishi/chef,nsdavidson/chef,jagdeesh109/chef,juliandunn/chef,circleback/chef,martinb3/chef,acaiafa/chef,docwhat/chef,youngjl1/chef,cmluciano/chef,OpSitters/chef,antonifs/chef,nicklv/chef,natewalck/chef,evan2645/chef,mattray/chef,nathwill/chef,baberthal/chef,cgvarela/chef,acaiafa/chef,bahamas10/chef,DeWaRs1206/chef,jonlives/chef,chef/chef,youngjl1/chef,zshuo/chef,youngjl1/chef,nathwill/chef,tbriggs-curse/chef,someara/chef,baberthal/chef,zuazo-forks/chef,brettcave/chef,smurawski/chef,DeWaRs1206/chef,clintoncwolfe/chef,lamont-granquist/chef,cachamber/chef,martinb3/chef,skmichaelson/chef,ktpan/chef-play,mio-g/chef,renanvicente/chef,BackSlasher/chef,kaznishi/chef,custora/chef,Ppjet6/chef,jmhardison/chef,patcon/chef,acaiafa/chef,nalingarg2/chef-1,brettcave/chef,adamleff/chef,b002368/chef-repo,higanworks/chef,ckaushik/chef,sanditiffin/chef,nvwls/chef,mikedodge04/chef,jblaine/chef,jaymzh/chef,clintoncwolfe/chef,jimmymccrory/chef,MsysTechnologiesllc/chef,smurawski/chef,MichaelPereira/chef,faspl/chef,nsdavidson/chef,erkolson/chef,jagdeesh109/chef,higanworks/chef,antonifs/chef,jkerry/chef,bahamas10/chef,jkerry/chef,b002368/chef-repo,Tensibai/chef,higanworks/chef,OpSitters/chef,renanvicente/chef,evan2645/chef,acaiafa/chef,askl56/chef,erkolson/chef,skmichaelson/chef,bahamas10/chef,nicklv/chef,cgvarela/chef,criteo-forks/chef,AndyBoucher/Chef-Testing,sometimesfood/chef,nsdavidson/chef,Igorshp/chef,h4ck3rm1k3/chef,pburkholder/chef,bahamas10/chef,legal90/chef,b002368/chef-repo,faspl/chef,askl56/chef,skmichaelson/chef,juliandunn/chef,ktpan/chef-play,sometimesfood/chef,lamont-granquist/chef,jmhardison/chef,Ppjet6/chef,robmul/chef,nalingarg2/chef-1,martinisoft/chef,nvwls/chef,malisettirammurthy/chef,EasonYi/chef,antonifs/chef,mal/chef,webframp/chef,sideci-sample/sideci-sample-chef,paulmooring/chef,MichaelPereira/chef,josb/chef,pburkholder/chef,tbunnyman/chef,sometimesfood/chef,pburkholder/chef,3dinfluence/chef,nellshamrell/chef,jmhardison/chef,mio-g/chef,docwhat/chef,ranjib/chef,mikefaille/chef,ekometti/chef,legal90/chef,evan2645/chef,lamont-granquist/chef,karthikrev/chef,sanditiffin/chef,antonifs/chef,jk47/chef,nicklv/chef,smurawski/chef,faspl/chef,h4ck3rm1k3/chef,josb/chef,malisettirammurthy/chef,jagdeesh109/chef,nicklv/chef,nguyen-tien-mulodo/chef,ChaosCloud/chef,MichaelPereira/chef,b002368/chef-repo,Tensibai/chef,jaymzh/chef,youngjl1/chef,kaznishi/chef,zuazo-forks/chef,MichaelPereira/chef,zuazo-forks/chef,custora/chef,permyakovsv/chef,tbunnyman/chef,tomdoherty/chef,circleback/chef,sempervictus/chef,sanditiffin/chef,faspl/chef,webframp/chef,lamont-granquist/chef,antonifs/chef,nellshamrell/chef,nalingarg2/chef-1,acaiafa/chef,sekrett/chef,docwhat/chef,patcon/chef,tas50/chef-1,mal/chef,Kast0rTr0y/chef,nvwls/chef,andrewpsp/chef,sekrett/chef,natewalck/chef,sekrett/chef,nathwill/chef,jmhardison/chef,aaron-lane/chef,nathwill/chef,adamleff/chef,Igorshp/chef,ranjib/chef,martinb3/chef,3dinfluence/chef,jkerry/chef,chef/chef,ducthanh/chef,joemiller/chef,nguyen-tien-mulodo/chef,paulmooring/chef,EasonYi/chef,renanvicente/chef,paulmooring/chef,malisettirammurthy/chef,josb/chef,EasonYi/chef,sideci-sample/sideci-sample-chef,Tensibai/chef,polamjag/chef,nsdavidson/chef,patcon/chef,askl56/chef,patcon/chef,AndyBoucher/Chef-Testing,jk47/chef,EasonYi/chef,oclaussen/chef,baberthal/chef,clintoncwolfe/chef,zuazo-forks/chef,andrewpsp/chef,swalberg/chef,BackSlasher/chef,custora/chef,andrewpsp/chef,tomdoherty/chef,jk47/chef,mal/chef,lamont-granquist/chef,tomdoherty/chef,evan2645/chef,tbriggs-curse/chef,ChaosCloud/chef,sekrett/chef,smurawski/chef,mikedodge04/chef,MsysTechnologiesllc/chef,tas50/chef-1,sanditiffin/chef,legal90/chef,mikedodge04/chef,oclaussen/chef,erkolson/chef,nalingarg2/chef-1,adamleff/chef,adamleff/chef,someara/chef,b002368/chef-repo,brettcave/chef,sideci-sample/sideci-sample-chef,paulmooring/chef,ccsplit/chef,sempervictus/chef,acaiafa/chef,jkerry/chef,jimmymccrory/chef,malisettirammurthy/chef,BackSlasher/chef,jonlives/chef,jimmymccrory/chef,grubernaut/chef,AndyBoucher/Chef-Testing,sanditiffin/chef,swalberg/chef,nellshamrell/chef,gene1wood/chef,gsaslis/chef,ccsplit/chef,AndyBoucher/Chef-Testing,jblaine/chef,ranjib/chef,jk47/chef,karthikrev/chef,ducthanh/chef,Kast0rTr0y/chef,Kast0rTr0y/chef,paulmooring/chef,MichaelPereira/chef,Igorshp/chef,ChaosCloud/chef,gene1wood/chef,patcon/chef,oclaussen/chef,sideci-sample/sideci-sample-chef,gsaslis/chef,custora/chef,nathwill/chef,tbriggs-curse/chef,juliandunn/chef,3dinfluence/chef,josb/chef,erkolson/chef,skmichaelson/chef,karthikrev/chef,martinisoft/chef,bahamas10/chef,webframp/chef,jmhardison/chef,josb/chef,oclaussen/chef,ChaosCloud/chef,criteo-forks/chef,jblaine/chef,aaron-lane/chef,askl56/chef,erkolson/chef,mwrock/chef,DeWaRs1206/chef,nguyen-tien-mulodo/chef,cachamber/chef,robmul/chef,circleback/chef,higanworks/chef,DeWaRs1206/chef,ktpan/chef-play,joemiller/chef,zuazo-forks/chef,grubernaut/chef,jblaine/chef,youngjl1/chef,custora/chef,natewalck/chef,Igorshp/chef,criteo-forks/chef,onlyhavecans/chef,criteo-forks/chef,adamleff/chef,baberthal/chef,permyakovsv/chef,clintoncwolfe/chef,MsysTechnologiesllc/chef,baberthal/chef,ekometti/chef,mattray/chef,ktpan/chef-play,onlyhavecans/chef,jimmymccrory/chef,polamjag/chef,nellshamrell/chef,malisettirammurthy/chef,ckaushik/chef,ccsplit/chef,nguyen-tien-mulodo/chef,EasonYi/chef,strangelittlemonkey/chef,zshuo/chef,paulmooring/chef,cgvarela/chef,chef/chef,cmluciano/chef,tbunnyman/chef,nvwls/chef,josb/chef,someara/chef,tomdoherty/chef,clintoncwolfe/chef,jonlives/chef,nellshamrell/chef,circleback/chef,swalberg/chef,andrewpsp/chef,permyakovsv/chef,evan2645/chef,aaron-lane/chef,ckaushik/chef,skmichaelson/chef,webframp/chef,swalberg/chef,smurawski/chef,joemiller/chef,ekometti/chef,nicklv/chef,strangelittlemonkey/chef,OpSitters/chef,tbriggs-curse/chef,nathwill/chef,BackSlasher/chef,jblaine/chef,martinisoft/chef,grubernaut/chef,Ppjet6/chef,ranjib/chef,AndyBoucher/Chef-Testing,criteo-forks/chef,MsysTechnologiesllc/chef,ckaushik/chef,sekrett/chef,oclaussen/chef,joemiller/chef,3dinfluence/chef,gsaslis/chef,mwrock/chef,evan2645/chef,ducthanh/chef,martinb3/chef,martinb3/chef,someara/chef,askl56/chef,jaymzh/chef,cachamber/chef,tbunnyman/chef,grubernaut/chef,nalingarg2/chef-1,polamjag/chef,mikedodge04/chef,mattray/chef,someara/chef,DeWaRs1206/chef,mio-g/chef,renanvicente/chef,ktpan/chef-play,mwrock/chef,nvwls/chef,antonifs/chef,sempervictus/chef,sempervictus/chef,martinisoft/chef,natewalck/chef,zshuo/chef,h4ck3rm1k3/chef,onlyhavecans/chef,oclaussen/chef,strangelittlemonkey/chef,jk47/chef,mio-g/chef,mattray/chef,mikedodge04/chef,gsaslis/chef,natewalck/chef,ekometti/chef,strangelittlemonkey/chef,h4ck3rm1k3/chef,tbunnyman/chef,sometimesfood/chef,tomdoherty/chef,OpSitters/chef,renanvicente/chef,mikefaille/chef,swalberg/chef,h4ck3rm1k3/chef,strangelittlemonkey/chef,ranjib/chef,cmluciano/chef,ranjib/chef,Kast0rTr0y/chef,legal90/chef,jonlives/chef,mwrock/chef,circleback/chef,custora/chef,nsdavidson/chef,docwhat/chef,karthikrev/chef,mio-g/chef,gene1wood/chef,cgvarela/chef,kaznishi/chef,sometimesfood/chef,AndyBoucher/Chef-Testing,jaymzh/chef,sempervictus/chef,permyakovsv/chef,mikefaille/chef,patcon/chef,mikefaille/chef,chef/chef,gsaslis/chef,nguyen-tien-mulodo/chef,ducthanh/chef,robmul/chef,robmul/chef,juliandunn/chef,cmluciano/chef,nsdavidson/chef,ccsplit/chef,ekometti/chef,bahamas10/chef,pburkholder/chef,swalberg/chef,ccsplit/chef,Igorshp/chef,mal/chef,b002368/chef-repo,joemiller/chef,sempervictus/chef,kaznishi/chef,tbunnyman/chef,sekrett/chef,permyakovsv/chef,Tensibai/chef,nellshamrell/chef,mal/chef