Prevent 500 after merge MR if you check remove source branch
Prevent 500 after merge MR if you check remove source branch

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

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