Fix 500 for labels page
Fix 500 for labels page

Signed-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>

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