dynamic_products should always return a scope
dynamic_products should always return a scope

this fixes the case where dynamic_products is called on a PG with no scopes defined
(otherwise the Product class is returned). Doesn't affect results, but it is more
consistent.

[#1179]

raow/spree,siddharth28/spree,jasonfb/spree,njerrywerry/spree,Ropeney/spree,jeffboulet/spree,Hawaiideveloper/shoppingcart,rbngzlv/spree,ahmetabdi/spree,priyank-gupta/spree,piousbox/spree,abhishekjain16/spree,CiscoCloud/spree,shaywood2/spree,tomash/spree,locomotivapro/spree,firman/spree,urimikhli/spree,FadliKun/spree,athal7/solidus,shaywood2/spree,RatioClothing/spree,gautamsawhney/spree,karlitxo/spree,Kagetsuki/spree,lzcabrera/spree-1-3-stable,net2b/spree,jordan-brough/spree,StemboltHQ/spree,hoanghiep90/spree,jordan-brough/spree,tesserakt/clean_spree,nooysters/spree,Machpowersystems/spree_mach,TimurTarasenko/spree,athal7/solidus,DynamoMTL/spree,APohio/spree,brchristian/spree,KMikhaylovCTG/spree,bonobos/solidus,grzlus/spree,yushine/spree,lsirivong/solidus,cutefrank/spree,vcavallo/spree,imella/spree,lyzxsc/spree,JDutil/spree,jhawthorn/spree,joanblake/spree,vinsol/spree,azranel/spree,vulk/spree,vulk/spree,pervino/spree,softr8/spree,pervino/solidus,reidblomquist/spree,jspizziri/spree,gregoryrikson/spree-sample,Migweld/spree,judaro13/spree-fork,surfdome/spree,sfcgeorge/spree,surfdome/spree,tomash/spree,rajeevriitm/spree,njerrywerry/spree,rakibulislam/spree,Antdesk/karpal-spree,jparr/spree,calvinl/spree,scottcrawford03/solidus,zaeznet/spree,reinaris/spree,nooysters/spree,hoanghiep90/spree,TimurTarasenko/spree,camelmasa/spree,net2b/spree,useiichi/spree,jspizziri/spree,caiqinghua/spree,Ropeney/spree,DarkoP/spree,ujai/spree,maybii/spree,sliaquat/spree,omarsar/spree,Boomkat/spree,thogg4/spree,JuandGirald/spree,locomotivapro/spree,archSeer/spree,knuepwebdev/FloatTubeRodHolders,Ropeney/spree,Nevensoft/spree,tomash/spree,Mayvenn/spree,hifly/spree,sideci-sample/sideci-sample-spree,miyazawatomoka/spree,welitonfreitas/spree,welitonfreitas/spree,adaddeo/spree,priyank-gupta/spree,vinsol/spree,yiqing95/spree,TrialGuides/spree,project-eutopia/spree,kewaunited/spree,useiichi/spree,camelmasa/spree,xuewenfei/solidus,CJMrozek/spree,jaspreet21anand/spree,KMikhaylovCTG/spree,Migweld/spree,edgward/spree,radarseesradar/spree,FadliKun/spree,jordan-brough/solidus,jsurdilla/solidus,raow/spree,useiichi/spree,brchristian/spree,richardnuno/solidus,biagidp/spree,rajeevriitm/spree,tesserakt/clean_spree,imella/spree,project-eutopia/spree,surfdome/spree,radarseesradar/spree,trigrass2/spree,Mayvenn/spree,Engeltj/spree,PhoenixTeam/spree_phoenix,camelmasa/spree,reinaris/spree,devilcoders/solidus,Hawaiideveloper/shoppingcart,vinayvinsol/spree,ahmetabdi/spree,archSeer/spree,vcavallo/spree,groundctrl/spree,alepore/spree,Senjai/solidus,derekluo/spree,ayb/spree,codesavvy/sandbox,LBRapid/spree,ramkumar-kr/spree,carlesjove/spree,agient/agientstorefront,vcavallo/spree,Mayvenn/spree,JuandGirald/spree,alepore/spree,fahidnasir/spree,jsurdilla/solidus,net2b/spree,codesavvy/sandbox,Kagetsuki/spree,azranel/spree,kewaunited/spree,locomotivapro/spree,camelmasa/spree,alvinjean/spree,Hawaiideveloper/shoppingcart,tesserakt/clean_spree,Hates/spree,odk211/spree,watg/spree,mindvolt/spree,edgward/spree,caiqinghua/spree,edgward/spree,builtbybuffalo/spree,piousbox/spree,patdec/spree,judaro13/spree-fork,degica/spree,lsirivong/solidus,Machpowersystems/spree_mach,shekibobo/spree,quentinuys/spree,devilcoders/solidus,ckk-scratch/solidus,njerrywerry/spree,piousbox/spree,jaspreet21anand/spree,vmatekole/spree,codesavvy/sandbox,azclick/spree,yushine/spree,josephholsten/plain-sight,pervino/solidus,sfcgeorge/spree,gautamsawhney/spree,APohio/spree,jasonfb/spree,athal7/solidus,Senjai/spree,dotandbo/spree,sliaquat/spree,alepore/spree,yushine/spree,sideci-sample/sideci-sample-spree,wolfieorama/spree,Antdesk/karpal-spree,sunny2601/spree,pervino/spree,PhoenixTeam/spree_phoenix,yiqing95/spree,zamiang/spree,Arpsara/solidus,Nevensoft/spree,Kagetsuki/spree,njerrywerry/spree,derekluo/spree,karlitxo/spree,scottcrawford03/solidus,progsri/spree,kitwalker12/spree,groundctrl/spree,yiqing95/spree,forkata/solidus,softr8/spree,AgilTec/spree,pjmj777/spree,trigrass2/spree,locomotivapro/spree,carlesjove/spree,caiqinghua/spree,sideci-sample/sideci-sample-spree,pulkit21/spree,StemboltHQ/spree,siddharth28/spree,calvinl/spree,yiqing95/spree,jimblesm/spree,dotandbo/spree,dandanwei/spree,sfcgeorge/spree,ckk-scratch/solidus,knuepwebdev/FloatTubeRodHolders,Machpowersystems/spree_mach,orenf/spree,devilcoders/solidus,NerdsvilleCEO/spree,wolfieorama/spree,alejandromangione/spree,degica/spree,surfdome/spree,forkata/solidus,quentinuys/spree,brchristian/spree,beni55/spree,woboinc/spree,ahmetabdi/spree,JuandGirald/spree,builtbybuffalo/spree,jhawthorn/spree,SadTreeFriends/spree,delphsoft/spree-store-ballchair,TimurTarasenko/spree,gregoryrikson/spree-sample,Migweld/spree,shioyama/spree,shaywood2/spree,derekluo/spree,gregoryrikson/spree-sample,grzlus/spree,dafontaine/spree,keatonrow/spree,jspizziri/spree,delphsoft/spree-store-ballchair,tancnle/spree,alvinjean/spree,lsirivong/solidus,dafontaine/spree,firman/spree,pervino/spree,agient/agientstorefront,Senjai/solidus,azranel/spree,DynamoMTL/spree,priyank-gupta/spree,shaywood2/spree,Arpsara/solidus,berkes/spree,Lostmyname/spree,tancnle/spree,mindvolt/spree,reinaris/spree,judaro13/spree-fork,jspizziri/spree,tancnle/spree,Hawaiideveloper/shoppingcart,CiscoCloud/spree,miyazawatomoka/spree,JDutil/spree,KMikhaylovCTG/spree,hifly/spree,AgilTec/spree,sanjay1185/mystore,caiqinghua/spree,volpejoaquin/spree,Mayvenn/spree,preston-scott/spree,bricesanchez/spree,jeffboulet/spree,jimblesm/spree,ujai/spree,Engeltj/spree,vulk/spree,piousbox/spree,vcavallo/spree,rakibulislam/spree,berkes/spree,welitonfreitas/spree,codesavvy/sandbox,zaeznet/spree,vulk/spree,madetech/spree,patdec/spree,knuepwebdev/FloatTubeRodHolders,adaddeo/spree,jaspreet21anand/spree,rakibulislam/spree,dotandbo/spree,odk211/spree,welitonfreitas/spree,project-eutopia/spree,joanblake/spree,TrialGuides/spree,pjmj777/spree,abhishekjain16/spree,CJMrozek/spree,forkata/solidus,RatioClothing/spree,volpejoaquin/spree,radarseesradar/spree,project-eutopia/spree,hifly/spree,gautamsawhney/spree,biagidp/spree,vinsol/spree,Migweld/spree,jordan-brough/solidus,TrialGuides/spree,watg/spree,DarkoP/spree,keatonrow/spree,JuandGirald/spree,sunny2601/spree,woboinc/spree,Engeltj/spree,alejandromangione/spree,bricesanchez/spree,APohio/spree,CJMrozek/spree,alejandromangione/spree,pulkit21/spree,moneyspyder/spree,CiscoCloud/spree,grzlus/spree,CJMrozek/spree,NerdsvilleCEO/spree,SadTreeFriends/spree,jsurdilla/solidus,jordan-brough/solidus,groundctrl/spree,scottcrawford03/solidus,sfcgeorge/spree,jhawthorn/spree,Senjai/solidus,lsirivong/spree,reidblomquist/spree,alejandromangione/spree,forkata/solidus,kitwalker12/spree,dandanwei/spree,vmatekole/spree,hoanghiep90/spree,joanblake/spree,quentinuys/spree,radarseesradar/spree,reidblomquist/spree,xuewenfei/solidus,pervino/solidus,jimblesm/spree,AgilTec/spree,RatioClothing/spree,APohio/spree,bjornlinder/Spree,net2b/spree,delphsoft/spree-store-ballchair,DynamoMTL/spree,alvinjean/spree,karlitxo/spree,keatonrow/spree,sunny2601/spree,pulkit21/spree,ayb/spree,scottcrawford03/solidus,Lostmyname/spree,sunny2601/spree,lsirivong/solidus,firman/spree,DarkoP/spree,vinsol/spree,patdec/spree,Hates/spree,LBRapid/spree,HealthWave/spree,dafontaine/spree,ramkumar-kr/spree,nooysters/spree,Engeltj/spree,vmatekole/spree,abhishekjain16/spree,FadliKun/spree,ujai/spree,raow/spree,grzlus/spree,richardnuno/solidus,degica/spree,shekibobo/spree,urimikhli/spree,yomishra/pce,adaddeo/spree,mleglise/spree,FadliKun/spree,omarsar/spree,dandanwei/spree,bricesanchez/spree,miyazawatomoka/spree,tesserakt/clean_spree,shioyama/spree,Antdesk/karpal-spree,pervino/solidus,kewaunited/spree,reinaris/spree,rajeevriitm/spree,jeffboulet/spree,DarkoP/spree,thogg4/spree,builtbybuffalo/spree,pervino/spree,watg/spree,vinayvinsol/spree,raow/spree,jparr/spree,JDutil/spree,lyzxsc/spree,softr8/spree,jimblesm/spree,kitwalker12/spree,robodisco/spree,Kagetsuki/spree,azclick/spree,dotandbo/spree,athal7/solidus,woboinc/spree,josephholsten/plain-sight,zamiang/spree,TrialGuides/spree,hoanghiep90/spree,archSeer/spree,beni55/spree,jasonfb/spree,shekibobo/spree,grzlus/solidus,lsirivong/spree,dafontaine/spree,quentinuys/spree,ayb/spree,assembledbrands/spree,DynamoMTL/spree,yomishra/pce,rajeevriitm/spree,AgilTec/spree,zaeznet/spree,lyzxsc/spree,ayb/spree,preston-scott/spree,delphsoft/spree-store-ballchair,SadTreeFriends/spree,odk211/spree,yomishra/pce,archSeer/spree,grzlus/solidus,bonobos/solidus,siddharth28/spree,madetech/spree,KMikhaylovCTG/spree,vmatekole/spree,Arpsara/solidus,ahmetabdi/spree,assembledbrands/spree,bjornlinder/Spree,Nevensoft/spree,omarsar/spree,LBRapid/spree,xuewenfei/solidus,Boomkat/spree,fahidnasir/spree,vivekamn/spree,jordan-brough/spree,Boomkat/spree,pjmj777/spree,freerunningtech/spree,Senjai/spree,madetech/spree,robodisco/spree,StemboltHQ/spree,rakibulislam/spree,SadTreeFriends/spree,Nevensoft/spree,jsurdilla/solidus,priyank-gupta/spree,brchristian/spree,Hates/spree,carlesjove/spree,ramkumar-kr/spree,bonobos/solidus,PhoenixTeam/spree_phoenix,beni55/spree,assembledbrands/spree,mindvolt/spree,siddharth28/spree,softr8/spree,lsirivong/spree,urimikhli/spree,CiscoCloud/spree,orenf/spree,sliaquat/spree,Senjai/solidus,reidblomquist/spree,lsirivong/spree,progsri/spree,bjornlinder/Spree,tailic/spree,ckk-scratch/solidus,lyzxsc/spree,berkes/spree,HealthWave/spree,Lostmyname/spree,miyazawatomoka/spree,jordan-brough/solidus,lzcabrera/spree-1-3-stable,shioyama/spree,moneyspyder/spree,jeffboulet/spree,odk211/spree,thogg4/spree,trigrass2/spree,rbngzlv/spree,bryanmtl/spree_clear2pay,kewaunited/spree,progsri/spree,maybii/spree,lzcabrera/spree-1-3-stable,mindvolt/spree,zamiang/spree,vinayvinsol/spree,robodisco/spree,calvinl/spree,moneyspyder/spree,grzlus/solidus,derekluo/spree,freerunningtech/spree,madetech/spree,zamiang/spree,berkes/spree,volpejoaquin/spree,gautamsawhney/spree,Arpsara/solidus,jparr/spree,cutefrank/spree,carlesjove/spree,NerdsvilleCEO/spree,moneyspyder/spree,rbngzlv/spree,Senjai/spree,richardnuno/solidus,Hates/spree,rbngzlv/spree,volpejoaquin/spree,gregoryrikson/spree-sample,agient/agientstorefront,jasonfb/spree,firman/spree,cutefrank/spree,adaddeo/spree,agient/agientstorefront,patdec/spree,trigrass2/spree,shekibobo/spree,richardnuno/solidus,JDutil/spree,jaspreet21anand/spree,mleglise/spree,calvinl/spree,jparr/spree,ckk-scratch/solidus,mleglise/spree,Ropeney/spree,tomash/spree,wolfieorama/spree,maybii/spree,yushine/spree,PhoenixTeam/spree_phoenix,alvinjean/spree,azranel/spree,builtbybuffalo/spree,karlitxo/spree,maybii/spree,joanblake/spree,azclick/spree,cutefrank/spree,NerdsvilleCEO/spree,sliaquat/spree,useiichi/spree,bonobos/solidus,groundctrl/spree,progsri/spree,imella/spree,tancnle/spree,mleglise/spree,xuewenfei/solidus,biagidp/spree,orenf/spree,nooysters/spree,devilcoders/solidus,ramkumar-kr/spree,vinayvinsol/spree,orenf/spree,abhishekjain16/spree,freerunningtech/spree,HealthWave/spree,Boomkat/spree,beni55/spree,hifly/spree,dandanwei/spree,thogg4/spree,fahidnasir/spree,grzlus/solidus,wolfieorama/spree,edgward/spree,tailic/spree,Lostmyname/spree,azclick/spree,vivekamn/spree,fahidnasir/spree,TimurTarasenko/spree,pulkit21/spree,zaeznet/spree,robodisco/spree,omarsar/spree,tailic/spree,keatonrow/spree