CHEF-3484: Modified configure_session method to skip nil items in loop
CHEF-3484: Modified configure_session method to skip nil items in loop

If we don't skip nil items then the if condition fails with No Method error.
ie if !config[:override_attribute] && nil[:cloud] &&
nil[:cloud][:public_hostname] is obviously nonsense

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