Fix input validation (.net 4.0 breaking change)
Fix input validation (.net 4.0 breaking change)

--HG--
branch : net40

sebastienros/msc,angelapper/Orchard,Inner89/Orchard,Inner89/Orchard,vard0/orchard.tan,Ermesx/Orchard,escofieldnaxos/Orchard,MpDzik/Orchard,vard0/orchard.tan,SeyDutch/Airbrush,OrchardCMS/Orchard,bedegaming-aleksej/Orchard,princeppy/JPYSites-Orchard-Azure-Live-SourceCode,dcinzona/Orchard,princeppy/JPYSites-Orchard-Azure-Live-SourceCode,ehe888/Orchard,arminkarimi/Orchard,smartnet-developers/Orchard,AEdmunds/beautiful-springtime,jchenga/Orchard,rtpHarry/Orchard,Lombiq/Orchard,Lombiq/Orchard,dcinzona/Orchard-Harvest-Website,AndreVolksdorf/Orchard,Serlead/Orchard,aaronamm/Orchard,li0803/Orchard,Ermesx/Orchard,angelapper/Orchard,princeppy/JPYSites-Orchard-Azure-Live-SourceCode,jersiovic/Orchard,andyshao/Orchard,TalaveraTechnologySolutions/Orchard,RoyalVeterinaryCollege/Orchard,spraiin/Orchard,johnnyqian/Orchard,SeyDutch/Airbrush,dburriss/Orchard,kgacova/Orchard,marcoaoteixeira/Orchard,AdvantageCS/Orchard,openbizgit/Orchard,huoxudong125/Orchard,hannan-azam/Orchard,Codinlab/Orchard,SouleDesigns/SouleDesigns.Orchard,enspiral-dev-academy/Orchard,OrchardCMS/Orchard,aaronamm/Orchard,dburriss/Orchard,geertdoornbos/Orchard,brownjordaninternational/OrchardCMS,fortunearterial/Orchard,kouweizhong/Orchard,cooclsee/Orchard,qt1/orchard4ibn,jersiovic/Orchard,hbulzy/Orchard,yersans/Orchard,hhland/Orchard,austinsc/Orchard,mvarblow/Orchard,hannan-azam/Orchard,Cphusion/Orchard,salarvand/Portal,TalaveraTechnologySolutions/Orchard,SzymonSel/Orchard,armanforghani/Orchard,TaiAivaras/Orchard,salarvand/Portal,OrchardCMS/Orchard,tobydodds/folklife,luchaoshuai/Orchard,neTp9c/Orchard,jaraco/orchard,kgacova/Orchard,dcinzona/Orchard-Harvest-Website,SeyDutch/Airbrush,alejandroaldana/Orchard,xkproject/Orchard,emretiryaki/Orchard,andyshao/Orchard,luchaoshuai/Orchard,patricmutwiri/Orchard,Morgma/valleyviewknolls,emretiryaki/Orchard,vairam-svs/Orchard,ehe888/Orchard,austinsc/Orchard,geertdoornbos/Orchard,jimasp/Orchard,OrchardCMS/Orchard,Fogolan/OrchardForWork,jchenga/Orchard,fassetar/Orchard,huoxudong125/Orchard,yonglehou/Orchard,qt1/Orchard,DonnotRain/Orchard,MetSystem/Orchard,TalaveraTechnologySolutions/Orchard,SzymonSel/Orchard,hannan-azam/Orchard,huoxudong125/Orchard,AEdmunds/beautiful-springtime,ericschultz/outercurve-orchard,Serlead/Orchard,TalaveraTechnologySolutions/Orchard,OrchardCMS/Orchard-Harvest-Website,dcinzona/Orchard-Harvest-Website,IDeliverable/Orchard,grapto/Orchard.CloudBust,vard0/orchard.tan,phillipsj/Orchard,kouweizhong/Orchard,tobydodds/folklife,TalaveraTechnologySolutions/Orchard,sebastienros/msc,JRKelso/Orchard,cooclsee/Orchard,stormleoxia/Orchard,hhland/Orchard,vard0/orchard.tan,cooclsee/Orchard,luchaoshuai/Orchard,mgrowan/Orchard,bigfont/orchard-continuous-integration-demo,Anton-Am/Orchard,abhishekluv/Orchard,vard0/orchard.tan,brownjordaninternational/OrchardCMS,sfmskywalker/Orchard,salarvand/Portal,omidnasri/Orchard,LaserSrl/Orchard,xkproject/Orchard,LaserSrl/Orchard,dcinzona/Orchard-Harvest-Website,omidnasri/Orchard,abhishekluv/Orchard,jagraz/Orchard,AEdmunds/beautiful-springtime,tobydodds/folklife,aaronamm/Orchard,SzymonSel/Orchard,jersiovic/Orchard,gcsuk/Orchard,johnnyqian/Orchard,jaraco/orchard,austinsc/Orchard,hhland/Orchard,jimasp/Orchard,dcinzona/Orchard-Harvest-Website,vairam-svs/Orchard,SeyDutch/Airbrush,TaiAivaras/Orchard,yonglehou/Orchard,bigfont/orchard-continuous-integration-demo,johnnyqian/Orchard,omidnasri/Orchard,m2cms/Orchard,emretiryaki/Orchard,johnnyqian/Orchard,angelapper/Orchard,MetSystem/Orchard,qt1/orchard4ibn,Inner89/Orchard,arminkarimi/Orchard,sfmskywalker/Orchard,harmony7/Orchard,gcsuk/Orchard,stormleoxia/Orchard,gcsuk/Orchard,ehe888/Orchard,xkproject/Orchard,jerryshi2007/Orchard,yersans/Orchard,bedegaming-aleksej/Orchard,infofromca/Orchard,yonglehou/Orchard,caoxk/orchard,bigfont/orchard-cms-modules-and-themes,OrchardCMS/Orchard-Harvest-Website,bigfont/orchard-continuous-integration-demo,phillipsj/Orchard,fortunearterial/Orchard,bigfont/orchard-cms-modules-and-themes,infofromca/Orchard,yersans/Orchard,hbulzy/Orchard,stormleoxia/Orchard,OrchardCMS/Orchard-Harvest-Website,mgrowan/Orchard,omidnasri/Orchard,cooclsee/Orchard,grapto/Orchard.CloudBust,patricmutwiri/Orchard,jaraco/orchard,neTp9c/Orchard,jtkech/Orchard,hbulzy/Orchard,yersans/Orchard,qt1/orchard4ibn,phillipsj/Orchard,arminkarimi/Orchard,OrchardCMS/Orchard-Harvest-Website,ericschultz/outercurve-orchard,jimasp/Orchard,rtpHarry/Orchard,bedegaming-aleksej/Orchard,vard0/orchard.tan,hbulzy/Orchard,caoxk/orchard,mvarblow/Orchard,aaronamm/Orchard,sfmskywalker/Orchard-Off-The-Grid-Sample-Code,DonnotRain/Orchard,IDeliverable/Orchard,Serlead/Orchard,arminkarimi/Orchard,dcinzona/Orchard,Codinlab/Orchard,dburriss/Orchard,dozoft/Orchard,fortunearterial/Orchard,qt1/Orchard,salarvand/orchard,salarvand/Portal,MpDzik/Orchard,DonnotRain/Orchard,infofromca/Orchard,Praggie/Orchard,Serlead/Orchard,Morgma/valleyviewknolls,fassetar/Orchard,openbizgit/Orchard,jersiovic/Orchard,Morgma/valleyviewknolls,Fogolan/OrchardForWork,asabbott/chicagodevnet-website,kouweizhong/Orchard,Codinlab/Orchard,bedegaming-aleksej/Orchard,omidnasri/Orchard,KeithRaven/Orchard,marcoaoteixeira/Orchard,Ermesx/Orchard,KeithRaven/Orchard,omidnasri/Orchard,alejandroaldana/Orchard,KeithRaven/Orchard,xiaobudian/Orchard,princeppy/JPYSites-Orchard-Azure-Live-SourceCode,AndreVolksdorf/Orchard,LaserSrl/Orchard,tobydodds/folklife,dmitry-urenev/extended-orchard-cms-v10.1,sfmskywalker/Orchard,ericschultz/outercurve-orchard,angelapper/Orchard,Cphusion/Orchard,stormleoxia/Orchard,neTp9c/Orchard,AdvantageCS/Orchard,MetSystem/Orchard,RoyalVeterinaryCollege/Orchard,Ermesx/Orchard,tobydodds/folklife,alejandroaldana/Orchard,salarvand/orchard,openbizgit/Orchard,brownjordaninternational/OrchardCMS,Sylapse/Orchard.HttpAuthSample,Anton-Am/Orchard,Dolphinsimon/Orchard,oxwanawxo/Orchard,SeyDutch/Airbrush,grapto/Orchard.CloudBust,LaserSrl/Orchard,oxwanawxo/Orchard,Fogolan/OrchardForWork,smartnet-developers/Orchard,IDeliverable/Orchard,omidnasri/Orchard,vairam-svs/Orchard,sfmskywalker/Orchard-Off-The-Grid-Sample-Code,kgacova/Orchard,TalaveraTechnologySolutions/Orchard,dmitry-urenev/extended-orchard-cms-v10.1,Sylapse/Orchard.HttpAuthSample,jtkech/Orchard,JRKelso/Orchard,jimasp/Orchard,neTp9c/Orchard,dozoft/Orchard,Sylapse/Orchard.HttpAuthSample,vairam-svs/Orchard,kgacova/Orchard,marcoaoteixeira/Orchard,sfmskywalker/Orchard-Off-The-Grid-Sample-Code,TaiAivaras/Orchard,sfmskywalker/Orchard-Off-The-Grid-Sample-Code,AndreVolksdorf/Orchard,AEdmunds/beautiful-springtime,planetClaire/Orchard-LETS,mgrowan/Orchard,asabbott/chicagodevnet-website,huoxudong125/Orchard,escofieldnaxos/Orchard,MetSystem/Orchard,AndreVolksdorf/Orchard,dozoft/Orchard,alejandroaldana/Orchard,kouweizhong/Orchard,gcsuk/Orchard,armanforghani/Orchard,dcinzona/Orchard-Harvest-Website,qt1/Orchard,enspiral-dev-academy/Orchard,tobydodds/folklife,Morgma/valleyviewknolls,li0803/Orchard,escofieldnaxos/Orchard,asabbott/chicagodevnet-website,KeithRaven/Orchard,salarvand/orchard,jagraz/Orchard,austinsc/Orchard,xiaobudian/Orchard,fassetar/Orchard,spraiin/Orchard,geertdoornbos/Orchard,openbizgit/Orchard,li0803/Orchard,patricmutwiri/Orchard,harmony7/Orchard,Sylapse/Orchard.HttpAuthSample,Praggie/Orchard,grapto/Orchard.CloudBust,omidnasri/Orchard,AdvantageCS/Orchard,Serlead/Orchard,andyshao/Orchard,aaronamm/Orchard,planetClaire/Orchard-LETS,RoyalVeterinaryCollege/Orchard,yonglehou/Orchard,sfmskywalker/Orchard,patricmutwiri/Orchard,jerryshi2007/Orchard,SouleDesigns/SouleDesigns.Orchard,mvarblow/Orchard,luchaoshuai/Orchard,SzymonSel/Orchard,JRKelso/Orchard,angelapper/Orchard,cryogen/orchard,salarvand/orchard,JRKelso/Orchard,armanforghani/Orchard,AndreVolksdorf/Orchard,SzymonSel/Orchard,ehe888/Orchard,infofromca/Orchard,bigfont/orchard-cms-modules-and-themes,dburriss/Orchard,armanforghani/Orchard,asabbott/chicagodevnet-website,huoxudong125/Orchard,abhishekluv/Orchard,Cphusion/Orchard,cooclsee/Orchard,andyshao/Orchard,m2cms/Orchard,enspiral-dev-academy/Orchard,sfmskywalker/Orchard,hannan-azam/Orchard,DonnotRain/Orchard,sfmskywalker/Orchard,dozoft/Orchard,Fogolan/OrchardForWork,andyshao/Orchard,marcoaoteixeira/Orchard,jerryshi2007/Orchard,jimasp/Orchard,bigfont/orchard-cms-modules-and-themes,Ermesx/Orchard,Inner89/Orchard,sfmskywalker/Orchard,spraiin/Orchard,jchenga/Orchard,gcsuk/Orchard,xiaobudian/Orchard,Inner89/Orchard,jtkech/Orchard,salarvand/orchard,li0803/Orchard,m2cms/Orchard,brownjordaninternational/OrchardCMS,Dolphinsimon/Orchard,harmony7/Orchard,cryogen/orchard,salarvand/Portal,AdvantageCS/Orchard,xkproject/Orchard,mvarblow/Orchard,Praggie/Orchard,mgrowan/Orchard,caoxk/orchard,SouleDesigns/SouleDesigns.Orchard,mvarblow/Orchard,sebastienros/msc,Cphusion/Orchard,abhishekluv/Orchard,armanforghani/Orchard,rtpHarry/Orchard,TaiAivaras/Orchard,enspiral-dev-academy/Orchard,ericschultz/outercurve-orchard,alejandroaldana/Orchard,enspiral-dev-academy/Orchard,Anton-Am/Orchard,phillipsj/Orchard,jchenga/Orchard,Fogolan/OrchardForWork,Praggie/Orchard,MetSystem/Orchard,hbulzy/Orchard,harmony7/Orchard,johnnyqian/Orchard,OrchardCMS/Orchard,RoyalVeterinaryCollege/Orchard,princeppy/JPYSites-Orchard-Azure-Live-SourceCode,Cphusion/Orchard,luchaoshuai/Orchard,rtpHarry/Orchard,SouleDesigns/SouleDesigns.Orchard,qt1/orchard4ibn,Morgma/valleyviewknolls,fortunearterial/Orchard,fortunearterial/Orchard,qt1/Orchard,SouleDesigns/SouleDesigns.Orchard,bedegaming-aleksej/Orchard,escofieldnaxos/Orchard,smartnet-developers/Orchard,harmony7/Orchard,DonnotRain/Orchard,NIKASoftwareDevs/Orchard,dcinzona/Orchard,IDeliverable/Orchard,openbizgit/Orchard,smartnet-developers/Orchard,dmitry-urenev/extended-orchard-cms-v10.1,jchenga/Orchard,planetClaire/Orchard-LETS,jersiovic/Orchard,OrchardCMS/Orchard-Harvest-Website,Anton-Am/Orchard,bigfont/orchard-cms-modules-and-themes,geertdoornbos/Orchard,dcinzona/Orchard,hannan-azam/Orchard,qt1/orchard4ibn,cryogen/orchard,jagraz/Orchard,spraiin/Orchard,neTp9c/Orchard,spraiin/Orchard,Dolphinsimon/Orchard,geertdoornbos/Orchard,Lombiq/Orchard,KeithRaven/Orchard,cryogen/orchard,phillipsj/Orchard,jtkech/Orchard,MpDzik/Orchard,TaiAivaras/Orchard,marcoaoteixeira/Orchard,sfmskywalker/Orchard,dburriss/Orchard,OrchardCMS/Orchard-Harvest-Website,m2cms/Orchard,li0803/Orchard,ehe888/Orchard,dmitry-urenev/extended-orchard-cms-v10.1,omidnasri/Orchard,MpDzik/Orchard,Codinlab/Orchard,vairam-svs/Orchard,abhishekluv/Orchard,mgrowan/Orchard,oxwanawxo/Orchard,abhishekluv/Orchard,Lombiq/Orchard,oxwanawxo/Orchard,jaraco/orchard,Codinlab/Orchard,stormleoxia/Orchard,Dolphinsimon/Orchard,m2cms/Orchard,fassetar/Orchard,sfmskywalker/Orchard-Off-The-Grid-Sample-Code,jagraz/Orchard,sebastienros/msc,Anton-Am/Orchard,austinsc/Orchard,fassetar/Orchard,JRKelso/Orchard,TalaveraTechnologySolutions/Orchard,planetClaire/Orchard-LETS,MpDzik/Orchard,hhland/Orchard,arminkarimi/Orchard,qt1/Orchard,Dolphinsimon/Orchard,sebastienros/msc,caoxk/orchard,xkproject/Orchard,hhland/Orchard,Praggie/Orchard,jtkech/Orchard,Sylapse/Orchard.HttpAuthSample,infofromca/Orchard,jerryshi2007/Orchard,TalaveraTechnologySolutions/Orchard,patricmutwiri/Orchard,brownjordaninternational/OrchardCMS,MpDzik/Orchard,grapto/Orchard.CloudBust,NIKASoftwareDevs/Orchard,grapto/Orchard.CloudBust,Lombiq/Orchard,kouweizhong/Orchard,qt1/orchard4ibn,NIKASoftwareDevs/Orchard,NIKASoftwareDevs/Orchard,AdvantageCS/Orchard,xiaobudian/Orchard,IDeliverable/Orchard,xiaobudian/Orchard,emretiryaki/Orchard,escofieldnaxos/Orchard,LaserSrl/Orchard,jerryshi2007/Orchard,smartnet-developers/Orchard,kgacova/Orchard,NIKASoftwareDevs/Orchard,yersans/Orchard,RoyalVeterinaryCollege/Orchard,rtpHarry/Orchard,yonglehou/Orchard,planetClaire/Orchard-LETS,bigfont/orchard-continuous-integration-demo,emretiryaki/Orchard,dozoft/Orchard,dmitry-urenev/extended-orchard-cms-v10.1,dcinzona/Orchard,jagraz/Orchard,oxwanawxo/Orchard