prevent exception when trying to edit empty project
prevent exception when trying to edit empty project

fendoudeqingchunhh/gitlabhq,hq804116393/gitlabhq,Burick/gitlabhq,aaronsnyder/gitlabhq,goeun/myRepo,pkallberg/tjenare,revaret/gitlabhq,mr-dxdy/gitlabhq,H3Chief/gitlabhq,1ed/gitlabhq,joalmeid/gitlabhq,sakishum/gitlabhq,initiummedia/gitlabhq,ikappas/gitlabhq,zrbsprite/gitlabhq,mmkassem/gitlabhq,rumpelsepp/gitlabhq,fpgentil/gitlabhq,ngpestelos/gitlabhq,allysonbarros/gitlabhq,rumpelsepp/gitlabhq,salipro4ever/gitlabhq,dplarson/gitlabhq,fendoudeqingchunhh/gitlabhq,theonlydoo/gitlabhq,sonalkr132/gitlabhq,allysonbarros/gitlabhq,neiljbrookes/glab,Datacom/gitlabhq,julianengel/gitlabhq,k4zzk/gitlabhq,cinderblock/gitlabhq,allistera/gitlabhq,bozaro/gitlabhq,gorgee/gitlabhq,NuLL3rr0r/gitlabhq,jrjang/gitlabhq,hacsoc/gitlabhq,DanielZhangQingLong/gitlabhq,jaepyoung/gitlabhq,dreampet/gitlab,darkrasid/gitlabhq,youprofit/gitlabhq,louahola/gitlabhq,cncodog/gitlab,screenpages/gitlabhq,louahola/gitlabhq,rhels/gitlabhq,copystudy/gitlabhq,bladealslayer/gitlabhq,dukex/gitlabhq,stoplightio/gitlabhq,yama07/gitlabhq,sonalkr132/gitlabhq,nmav/gitlabhq,duduribeiro/gitlabhq,yuyue2013/ss,whluwit/gitlabhq,xuvw/gitlabhq,htve/GitlabForChinese,tim-hoff/gitlabhq,jirutka/gitlabhq,yonglehou/gitlabhq,chadyred/gitlabhq,Razer6/gitlabhq,martinma4/gitlabhq,Exeia/gitlabhq,Kambda/mobbr-gitlabhq,michaKFromParis/gitlabhq,rebecamendez/gitlabhq,123Haynes/gitlabhq,cncodog/gitlab,chenrui2014/gitlabhq,yulchitaj/TEST3,bladealslayer/gitlabhq,zBMNForks/gitlabhq,liyakun/gitlabhq,michaKFromParis/sparkslab,per-garden/gitlabhq,yatish27/gitlabhq,htve/GitlabForChinese,dvrylc/gitlabhq,since2014/gitlabhq,SkyWei/gitlabhq,darkrasid/gitlabhq,bbodenmiller/gitlabhq,flashbuckets/gitlabhq,larryli/gitlabhq,atomaka/gitlabhq,windymid/test2,k4zzk/gitlabhq,zrbsprite/gitlabhq,xuvw/gitlabhq,goeun/myRepo,michaKFromParis/gitlabhqold,axilleas/gitlabhq,nguyen-tien-mulodo/gitlabhq,Telekom-PD/gitlabhq,vjustov/gitlabhq,williamherry/gitlabhq,Tyrael/gitlabhq,jrjang/gitlabhq,NKMR6194/gitlabhq,nmav/gitlabhq,openwide-java/gitlabhq,kemenaran/gitlabhq,123Haynes/gitlabhq,bbodenmiller/gitlabhq,revaret/gitlabhq,8thcolor/testing-public-gitlabhq,luzhongyang/gitlabhq,copystudy/gitlabhq,allistera/gitlabhq,ferdinandrosario/gitlabhq,ZeoAlliance/gitlabhq,dwrensha/gitlabhq,mavimo/gitlabhq,akumetsuv/gitlab,mr-dxdy/gitlabhq,iiet/iiet-git,dwrensha/gitlabhq,aaronsnyder/gitlabhq,sue445/gitlabhq,betabot7/gitlabhq,kemenaran/gitlabhq,hzy001/gitlabhq,sue445/gitlabhq,sakishum/gitlabhq,sonalkr132/gitlabhq,chadyred/gitlabhq,hacsoc/gitlabhq,SkyWei/gitlabhq,icedwater/gitlabhq,Devin001/gitlabhq,pkgr/gitlabhq,shinexiao/gitlabhq,mathstuf/gitlabhq,jairzh/gitlabhq-sfdc,Datacom/gitlabhq,screenpages/gitlabhq,theonlydoo/gitlabhq,manfer/gitlabhq,bozaro/gitlabhq,Datacom/gitlabhq,betabot7/gitlabhq,kitech/gitlabhq,cncodog/gitlab,Razer6/gitlabhq,shinexiao/gitlabhq,xuvw/gitlabhq,stanhu/gitlabhq,yatish27/gitlabhq,pkallberg/tjenare,SVArago/gitlabhq,luzhongyang/gitlabhq,jvanbaarsen/gitlabhq,darkrasid/gitlabhq,Razer6/gitlabhq,SkyWei/gitlabhq,nguyen-tien-mulodo/gitlabhq,folpindo/gitlabhq,lbt/gitlabhq,Burick/gitlabhq,rebecamendez/gitlabhq,revaret/gitlabhq,martinma4/gitlabhq,fscherwi/gitlabhq,martinma4/gitlabhq,delkyd/gitlabhq,yulchitaj/TEST3,szechyjs/gitlabhq,cinderblock/gitlabhq,per-garden/gitlabhq,fgbreel/gitlabhq,t-zuehlsdorff/gitlabhq,sideci-sample/sideci-sample-gitlabhq,larryli/gitlabhq,michaKFromParis/sparkslab,bozaro/gitlabhq,dukex/gitlabhq,NuLL3rr0r/gitlabhq,dreampet/gitlab,openwide-java/gitlabhq,koreamic/gitlabhq,manfer/gitlabhq,ayufan/gitlabhq,zBMNForks/gitlabhq,MauriceMohlek/gitlabhq,initiummedia/gitlabhq,123Haynes/gitlabhq,folpindo/gitlabhq,rfeese/gitlab-ce,ArthurHoaro/Public-GitLab,adaiguoguo/gitlab_globalserarch,theonlydoo/gitlabhq,iiet/iiet-git,MauriceMohlek/gitlabhq,theodi/gitlabhq,iiet/iiet-git,michaKFromParis/gitlabhq,martijnvermaat/gitlabhq,Telekom-PD/gitlabhq,SkyWei/gitlabhq,nmav/gitlabhq,1ed/gitlabhq,0x20h/gitlabhq,yuyue2013/ss,mrb/gitlabhq,WSDC-NITWarangal/gitlabhq,larryli/gitlabhq,gopeter/gitlabhq,wangcan2014/gitlabhq,axilleas/gitlabhq,chenrui2014/gitlabhq,dplarson/gitlabhq,fpgentil/gitlabhq,michaKFromParis/gitlabhqold,pkgr/gitlabhq,fpgentil/gitlabhq,fendoudeqingchunhh/gitlabhq,tempbottle/gitlabhq,fearenales/gitlabhq,achako/gitlabhq,tk23/gitlabhq,johnmyqin/gitlabhq,Exeia/gitlabhq,hzy001/gitlabhq,SVArago/gitlabhq,NuLL3rr0r/gitlabhq,LUMC/gitlabhq,pjknkda/gitlabhq,lvfeng1130/gitlabhq,chenrui2014/gitlabhq,8thcolor/rubyconfau2015-sadr,darkrasid/gitlabhq,k4zzk/gitlabhq,ordiychen/gitlabhq,gopeter/gitlabhq,jvanbaarsen/gitlabhq,ksoichiro/gitlabhq,DanielZhangQingLong/gitlabhq,dvrylc/gitlabhq,Exeia/gitlabhq,michaKFromParis/gitlabhqold,mente/gitlabhq,copystudy/gitlabhq,cui-liqiang/gitlab-ce,LytayTOUCH/gitlabhq,bigsurge/gitlabhq,koreamic/gitlabhq,theonlydoo/gitlabhq,mathstuf/gitlabhq,jrjang/gitlab-ce,lbt/gitlabhq,LytayTOUCH/gitlabhq,rebecamendez/gitlabhq,OlegGirko/gitlab-ce,mrb/gitlabhq,mmkassem/gitlabhq,1ed/gitlabhq,sekcheong/gitlabhq,ferdinandrosario/gitlabhq,axilleas/gitlabhq,bigsurge/gitlabhq,it33/gitlabhq,jirutka/gitlabhq,dukex/gitlabhq,copystudy/gitlabhq,revaret/gitlabhq,stanhu/gitlabhq,stellamiranda/mobbr-gitlabhq,Tyrael/gitlabhq,theodi/gitlabhq,stanhu/gitlabhq,ksoichiro/gitlabhq,it33/gitlabhq,jaepyoung/gitlabhq,fearenales/gitlabhq,yuyue2013/ss,jaepyoung/gitlabhq,tim-hoff/gitlabhq,Tyrael/gitlabhq,H3Chief/gitlabhq,mente/gitlabhq,cinderblock/gitlabhq,adaiguoguo/gitlab_globalserarch,mathstuf/gitlabhq,WSDC-NITWarangal/gitlabhq,phinfonet/mobbr-gitlabhq,LUMC/gitlabhq,wangcan2014/gitlabhq,openwide-java/gitlabhq,jrjang/gitlab-ce,flashbuckets/gitlabhq,NKMR6194/gitlabhq,zrbsprite/gitlabhq,sideci-sample/sideci-sample-gitlabhq,nguyen-tien-mulodo/gitlabhq,rumpelsepp/gitlabhq,childbamboo/gitlabhq,bbodenmiller/gitlabhq,SVArago/gitlabhq,kotaro-dev/gitlab-6-9,shinexiao/gitlabhq,jaepyoung/gitlabhq,DanielZhangQingLong/gitlabhq,ferdinandrosario/gitlabhq,ayufan/gitlabhq,tempbottle/gitlabhq,ZeoAlliance/gitlabhq,goeun/myRepo,pupaxxo/gitlabhq,fantasywind/gitlabhq,jairzh/gitlabhq-sfdc,icedwater/gitlabhq,louahola/gitlabhq,stellamiranda/mobbr-gitlabhq,NARKOZ/gitlabhq,mathstuf/gitlabhq,NARKOZ/gitlabhq,koreamic/gitlabhq,hzy001/gitlabhq,yfaizal/gitlabhq,ZeoAlliance/gitlabhq,childbamboo/gitlabhq,yfaizal/gitlabhq,Soullivaneuh/gitlabhq,jrjang/gitlabhq,icedwater/gitlabhq,flashbuckets/gitlabhq,delkyd/gitlabhq,jrjang/gitlab-ce,mente/gitlabhq,mavimo/gitlabhq,duduribeiro/gitlabhq,cncodog/gitlab,ordiychen/gitlabhq,theodi/gitlabhq,allysonbarros/gitlabhq,Kambda/Mobbr,kemenaran/gitlabhq,phinfonet/mobbr-gitlabhq,aaronsnyder/gitlabhq,jrjang/gitlab-ce,rfeese/gitlab-ce,Kambda/mobbr-gitlabhq,whluwit/gitlabhq,neiljbrookes/glab,neiljbrookes/glab,dvrylc/gitlabhq,mr-dxdy/gitlabhq,daiyu/gitlab-zh,8thcolor/testing-public-gitlabhq,pkgr/gitlabhq,hq804116393/gitlabhq,jirutka/gitlabhq,yfaizal/gitlabhq,Burick/gitlabhq,aaronsnyder/gitlabhq,cui-liqiang/gitlab-ce,akumetsuv/gitlab,whluwit/gitlabhq,it33/gitlabhq,szechyjs/gitlabhq,sekcheong/gitlabhq,Kambda/Mobbr,hq804116393/gitlabhq,ttasanen/gitlabhq,fantasywind/gitlabhq,rumpelsepp/gitlabhq,kitech/gitlabhq,duduribeiro/gitlabhq,Keystion/gitlabhq,johnmyqin/gitlabhq,eliasp/gitlabhq,dreampet/gitlab,lvfeng1130/gitlabhq,ikappas/gitlabhq,8thcolor/eurucamp2014-htdsadr,kitech/gitlabhq,NKMR6194/gitlabhq,OlegGirko/gitlab-ce,per-garden/gitlabhq,stanhu/gitlabhq,Devin001/gitlabhq,ArthurHoaro/Public-GitLab,Telekom-PD/gitlabhq,theodi/gitlabhq,TheWatcher/gitlabhq,childbamboo/gitlabhq,joalmeid/gitlabhq,salipro4ever/gitlabhq,MauriceMohlek/gitlabhq,MauriceMohlek/gitlabhq,pulkit21/gitlabhq,achako/gitlabhq,julianengel/gitlabhq,fendoudeqingchunhh/gitlabhq,bigsurge/gitlabhq,NKMR6194/gitlabhq,stoplightio/gitlabhq,Kambda/Mobbr,fearenales/gitlabhq,pulkit21/gitlabhq,dukex/gitlabhq,stoplightio/gitlabhq,Tyrael/gitlabhq,TheWatcher/gitlabhq,windymid/test2,sonalkr132/gitlabhq,jairzh/gitlabhq-sfdc,Burick/gitlabhq,tim-hoff/gitlabhq,ArthurHoaro/Public-GitLab,iiet/iiet-git,Kambda/mobbr-gitlabhq,nmav/gitlabhq,szechyjs/gitlabhq,mmkassem/gitlabhq,szechyjs/gitlabhq,bigsurge/gitlabhq,OtkurBiz/gitlabhq,sue445/gitlabhq,dreampet/gitlab,sakishum/gitlabhq,yama07/gitlabhq,Soullivaneuh/gitlabhq,larryli/gitlabhq,WSDC-NITWarangal/gitlabhq,kemenaran/gitlabhq,joalmeid/gitlabhq,Keystion/gitlabhq,wangcan2014/gitlabhq,chadyred/gitlabhq,michaKFromParis/gitlabhqold,cinderblock/gitlabhq,youprofit/gitlabhq,sideci-sample/sideci-sample-gitlabhq,yonglehou/gitlabhq,per-garden/gitlabhq,LUMC/gitlabhq,salipro4ever/gitlabhq,NARKOZ/gitlabhq,martinma4/gitlabhq,LytayTOUCH/gitlabhq,koreamic/gitlabhq,pupaxxo/gitlabhq,sekcheong/gitlabhq,flashbuckets/gitlabhq,yonglehou/gitlabhq,kotaro-dev/gitlab-6-9,OtkurBiz/gitlabhq,kitech/gitlabhq,t-zuehlsdorff/gitlabhq,johnmyqin/gitlabhq,liyakun/gitlabhq,dwrensha/gitlabhq,chadyred/gitlabhq,tk23/gitlabhq,pulkit21/gitlabhq,tempbottle/gitlabhq,manfer/gitlabhq,8thcolor/testing-public-gitlabhq,liyakun/gitlabhq,lbt/gitlabhq,yulchitaj/TEST3,williamherry/gitlabhq,initiummedia/gitlabhq,pupaxxo/gitlabhq,TheWatcher/gitlabhq,stoplightio/gitlabhq,pjknkda/gitlabhq,childbamboo/gitlabhq,yama07/gitlabhq,htve/GitlabForChinese,ibiart/gitlabhq,0x20h/gitlabhq,ksoichiro/gitlabhq,ttasanen/gitlabhq,mavimo/gitlabhq,yulchitaj/TEST3,jairzh/gitlabhq-sfdc,screenpages/gitlabhq,gorgee/gitlabhq,tk23/gitlabhq,daiyu/gitlab-zh,chenrui2014/gitlabhq,michaKFromParis/sparkslab,adaiguoguo/gitlab_globalserarch,vjustov/gitlabhq,since2014/gitlabhq,pkallberg/tjenare,pjknkda/gitlabhq,Keystion/gitlabhq,Soullivaneuh/gitlabhq,8thcolor/eurucamp2014-htdsadr,DanielZhangQingLong/gitlabhq,mmkassem/gitlabhq,yonglehou/gitlabhq,ibiart/gitlabhq,LUMC/gitlabhq,axilleas/gitlabhq,phinfonet/mobbr-gitlabhq,Soullivaneuh/gitlabhq,tempbottle/gitlabhq,rhels/gitlabhq,fpgentil/gitlabhq,hq804116393/gitlabhq,ikappas/gitlabhq,Telekom-PD/gitlabhq,H3Chief/gitlabhq,ngpestelos/gitlabhq,icedwater/gitlabhq,ikappas/gitlabhq,yama07/gitlabhq,adaiguoguo/gitlab_globalserarch,k4zzk/gitlabhq,dwrensha/gitlabhq,julianengel/gitlabhq,kotaro-dev/gitlab-6-9,youprofit/gitlabhq,michaKFromParis/gitlabhq,fantasywind/gitlabhq,gopeter/gitlabhq,mente/gitlabhq,michaKFromParis/gitlabhq,mr-dxdy/gitlabhq,louahola/gitlabhq,sakishum/gitlabhq,dvrylc/gitlabhq,TheWatcher/gitlabhq,joalmeid/gitlabhq,initiummedia/gitlabhq,daiyu/gitlab-zh,gorgee/gitlabhq,gorgee/gitlabhq,akumetsuv/gitlab,WSDC-NITWarangal/gitlabhq,jrjang/gitlabhq,folpindo/gitlabhq,fgbreel/gitlabhq,ordiychen/gitlabhq,betabot7/gitlabhq,eliasp/gitlabhq,dplarson/gitlabhq,ordiychen/gitlabhq,LytayTOUCH/gitlabhq,it33/gitlabhq,yfaizal/gitlabhq,hacsoc/gitlabhq,hacsoc/gitlabhq,Devin001/gitlabhq,allysonbarros/gitlabhq,salipro4ever/gitlabhq,htve/GitlabForChinese,delkyd/gitlabhq,SVArago/gitlabhq,gopeter/gitlabhq,NARKOZ/gitlabhq,vjustov/gitlabhq,lvfeng1130/gitlabhq,H3Chief/gitlabhq,atomaka/gitlabhq,OtkurBiz/gitlabhq,yatish27/gitlabhq,jvanbaarsen/gitlabhq,manfer/gitlabhq,williamherry/gitlabhq,t-zuehlsdorff/gitlabhq,Exeia/gitlabhq,rebecamendez/gitlabhq,fgbreel/gitlabhq,liyakun/gitlabhq,martijnvermaat/gitlabhq,OtkurBiz/gitlabhq,folpindo/gitlabhq,since2014/gitlabhq,mrb/gitlabhq,delkyd/gitlabhq,t-zuehlsdorff/gitlabhq,stellamiranda/mobbr-gitlabhq,allistera/gitlabhq,OlegGirko/gitlab-ce,OlegGirko/gitlab-ce,Devin001/gitlabhq,achako/gitlabhq,rfeese/gitlab-ce,cui-liqiang/gitlab-ce,openwide-java/gitlabhq,pulkit21/gitlabhq,fscherwi/gitlabhq,allistera/gitlabhq,ttasanen/gitlabhq,since2014/gitlabhq,8thcolor/eurucamp2014-htdsadr,zBMNForks/gitlabhq,cui-liqiang/gitlab-ce,luzhongyang/gitlabhq,jirutka/gitlabhq,williamherry/gitlabhq,ferdinandrosario/gitlabhq,sue445/gitlabhq,michaKFromParis/sparkslab,yuyue2013/ss,screenpages/gitlabhq,Keystion/gitlabhq,eliasp/gitlabhq,Datacom/gitlabhq,martijnvermaat/gitlabhq,0x20h/gitlabhq,sekcheong/gitlabhq,martijnvermaat/gitlabhq,bozaro/gitlabhq,rhels/gitlabhq,bbodenmiller/gitlabhq,vjustov/gitlabhq,8thcolor/rubyconfau2015-sadr,ayufan/gitlabhq,rhels/gitlabhq,ngpestelos/gitlabhq,luzhongyang/gitlabhq,fantasywind/gitlabhq,zrbsprite/gitlabhq,pjknkda/gitlabhq,ayufan/gitlabhq,tk23/gitlabhq,fscherwi/gitlabhq,mavimo/gitlabhq,johnmyqin/gitlabhq,fearenales/gitlabhq,youprofit/gitlabhq,ttasanen/gitlabhq,lvfeng1130/gitlabhq,daiyu/gitlab-zh,whluwit/gitlabhq,8thcolor/rubyconfau2015-sadr,eliasp/gitlabhq,fscherwi/gitlabhq,yatish27/gitlabhq,mrb/gitlabhq,zBMNForks/gitlabhq,ksoichiro/gitlabhq,atomaka/gitlabhq,shinexiao/gitlabhq,dplarson/gitlabhq,fgbreel/gitlabhq,windymid/test2,wangcan2014/gitlabhq,hzy001/gitlabhq,jvanbaarsen/gitlabhq,julianengel/gitlabhq,rfeese/gitlab-ce,duduribeiro/gitlabhq,ngpestelos/gitlabhq,tim-hoff/gitlabhq,bladealslayer/gitlabhq,Razer6/gitlabhq,ibiart/gitlabhq,nguyen-tien-mulodo/gitlabhq