Do not update last_checked_event_id if an agent cannot receive events.
Do not update last_checked_event_id if an agent cannot receive events.

Use `maximum` while at it.

shaunaa126/huginn,andywenk/huginn,eugenesvk/huginn,kyroskoh/huginn,whicheverpeady/huginn,cantonic/huginn,dobtco/huginn,ianblenke/huginn,materliu/huginn,strugee/huginn,willyg302/huginn,cantino/huginn,wxdublin/huginn,KentFujii/huginn,huginn/huginn,ashmckenzie/huginn,VelocityGrowth/huginn,madflow/huginn,virtadpt/huginn,nuentes/huginn,albertsun/huginn,badrul/huginn,CodeHunter2006/huginn,stvnrlly/huginn,HyeongBaeYu/huginnMirror,dobtco/huginn,creativepsyco/huginn,randullluo/huginn,bencornelis/huginn,dobtco/huginn,dsander/huginn,VelocityGrowth/huginn,lgwapnitsky/huginn-lgw,mirko314/huginn,armuk/huginn,johnleeming/huginn,MOZGIII/huginn,armuk/huginn,askl56/huginn,swimclan/huginn,angelabier1/huginn,azati/huginn,francxk/huginn,shirshendu/huginn,naiyt/huginn,rasata/huginn,bencornelis/huginn,naiyt/huginn,niravaga/huginn,cpretzer/huginn,ahmadassaf/IFTTT-Plus,fseidor/huginn,stephenanthony/huginn,whicheverpeady/huginn,kyroskoh/huginn,mikalauskas/huginn,run-project/huginn,c24b/huginn,andywenk/huginn,KentFujii/huginn,mirko314/huginn,djolivier/huginn,shaunaa126/huginn,shirshendu/huginn,MadBomber/huginn,evaryont/huginn,AdrianoCahete/huginn,den53/huginn,breandan/huginn,Aluxian/huginn,willyg302/huginn,materliu/huginn,offbyone/huginn,lgwapnitsky/huginn-lgw,gautamkrishnar/huginn,virtadpt/huginn,Aluxian/huginn,pssaravanan/huginn,Ishfal/huginn,younata/huginn,marcusgadbem/huginn,TildeWill/huginn,rasata/huginn,albertsun/huginn,jezcope/huginn,wxdublin/huginn,lgwapnitsky/huginn-lgw,azati/huginn,flagsoft/huginn,younata/huginn,shaunaa126/huginn,creativepsyco/huginn,darrencauthon/huginn,megaxox/huginn,HyeongBaeYu/huginnMirror,jezcope/huginn,pssaravanan/huginn,vawen/huginn,rasata/huginn,eugenesvk/huginn,cpretzer/huginn,brianpetro/huginn,dnjo/huginn-spotify-linker,flechaig/huginn,vawen/huginn,offbyone/huginn,deanishe/huginn,mirko314/huginn,bartoszkopinski/huginn,willyg302/huginn,creativepsyco/huginn,bartoszkopinski/huginn,djolivier/huginn,madflow/huginn,deanishe/huginn,randullluo/huginn,cantonic/huginn,cantino/huginn,MOZGIII/huginn,swimclan/huginn,sideci-sample/sideci-sample-huginn,strugee/huginn,toruta39/huginn,angelabier1/huginn,breandan/huginn,valeriosouza/huginn,ashmckenzie/huginn,azati/huginn,johnleeming/huginn,mathias/huginn,ashmckenzie/huginn,run-project/huginn,dnjo/huginn-spotify-linker,younata/huginn,johnleeming/huginn,ianblenke/huginn,purposeindustries/huginn,breandan/huginn,duke-libraries/huginn,virtadpt/huginn,mathias/huginn,angelabier1/huginn,evaryont/huginn,eugenesvk/huginn,vawen/huginn,ahmadassaf/IFTTT-Plus,omniscopeio/huginn,flagsoft/huginn,mikalauskas/huginn,wxdublin/huginn,gautamkrishnar/huginn,Ishfal/huginn,cantonic/huginn,mikalauskas/huginn,den53/huginn,run-project/huginn,flechaig/huginn,stephenanthony/huginn,askl56/huginn,MOZGIII/huginn,dsander/huginn-test,pssaravanan/huginn,omniscopeio/huginn,fseidor/huginn,jezcope/huginn,stvnrlly/huginn,cantino/huginn,darrencauthon/huginn,niravaga/huginn,francxk/huginn,armuk/huginn,purposeindustries/huginn,mindvalley/huginn,CodeHunter2006/huginn,MadBomber/huginn,valeriosouza/huginn,huginn/huginn,badrul/huginn,dnjo/huginn,askl56/huginn,AdrianoCahete/huginn,TildeWill/huginn,toruta39/huginn,francxk/huginn,satishgoda/huginn,calio/huginn,andywenk/huginn,dnjo/huginn,marcusgadbem/huginn,MadBomber/huginn,mindvalley/huginn,badrul/huginn,valeriosouza/huginn,dsander/huginn-test,strugee/huginn,dsander/huginn,djolivier/huginn,chrisgogreen/huginn,albertsun/huginn,c24b/huginn,niravaga/huginn,chrisgogreen/huginn,duke-libraries/huginn,calio/huginn,randullluo/huginn,marcusgadbem/huginn,nuentes/huginn,mindvalley/huginn,darrencauthon/huginn,materliu/huginn,AdrianoCahete/huginn,swimclan/huginn,Aluxian/huginn,megaxox/huginn,cpretzer/huginn,Ishfal/huginn,c24b/huginn,omniscopeio/huginn,bencornelis/huginn,kyroskoh/huginn,shirshendu/huginn,megaxox/huginn,evaryont/huginn,satishgoda/huginn,fseidor/huginn,brianpetro/huginn,flechaig/huginn,bartoszkopinski/huginn,deanishe/huginn,purposeindustries/huginn,offbyone/huginn,TildeWill/huginn,stephenanthony/huginn,ahmadassaf/IFTTT-Plus,whicheverpeady/huginn,flagsoft/huginn,dnjo/huginn-spotify-linker,satishgoda/huginn,stvnrlly/huginn,VelocityGrowth/huginn,chrisgogreen/huginn,madflow/huginn,dsander/huginn,nuentes/huginn,CodeHunter2006/huginn,brianpetro/huginn,ianblenke/huginn,dsander/huginn-test,dnjo/huginn,sideci-sample/sideci-sample-huginn,KentFujii/huginn,den53/huginn,gautamkrishnar/huginn,duke-libraries/huginn,mathias/huginn,naiyt/huginn,toruta39/huginn,huginn/huginn,calio/huginn,run-project/huginn