Fix random Argument error when update note
Fix random Argument error when update note

In some strange cases Ruby thinks `system` is not AR field but
Kernel.system call and raises exception during save. It should prevent
this random wierd behaviour

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

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