Handle undefined datetime values
Handle undefined datetime values

Closes #3288
- Check for undefined last_login and created_at values that occur
  on a User model for an invited user.

e10/Ghost,gcamana/Ghost,rouanw/Ghost,UsmanJ/Ghost,blankmaker/Ghost,ErisDS/Ghost,diogogmt/Ghost,wallmarkets/Ghost,camilodelvasto/herokughost,novaugust/Ghost,praveenscience/Ghost,ErisDS/Ghost,VillainyStudios/Ghost,francisco-filho/Ghost,tmp-reg/Ghost,yangli1990/Ghost,jparyani/GhostSS,ladislas/ghost,ladislas/ghost,singular78/Ghost,exsodus3249/Ghost,smaty1/Ghost,dbalders/Ghost,developer-prosenjit/Ghost,achimos/ghost_as,denzelwamburu/denzel.xyz,pbevin/Ghost,laispace/laiblog,davidenq/Ghost-Blog,ericbenson/GhostAzureSetup,Yarov/yarov,Xibao-Lv/Ghost,DesenTao/Ghost,TribeMedia/Ghost,sfpgmr/Ghost,sebgie/Ghost,ygbhf/Ghost,LeandroNascimento/Ghost,akveo/akveo-blog,darvelo/Ghost,rito/Ghost,InnoD-WebTier/hardboiled_ghost,carlosmtx/Ghost,TryGhost/Ghost,Japh/Ghost,zhiyishou/Ghost,rmoorman/Ghost,ghostchina/Ghost-zh,virtuallyearthed/Ghost,handcode7/Ghost,Feitianyuan/Ghost,Alxandr/Blog,rollokb/Ghost,pedroha/Ghost,melissaroman/ghost-blog,lukw00/Ghost,cicorias/Ghost,jparyani/GhostSS,jorgegilmoreira/ghost,patterncoder/patterncoder,sangcu/Ghost,madole/diverse-learners,katrotz/blog.katrotz.space,cwonrails/Ghost,ASwitlyk/Ghost,janvt/Ghost,AileenCGN/Ghost,tmp-reg/Ghost,tksander/Ghost,karmakaze/Ghost,daimaqiao/Ghost-Bridge,imjerrybao/Ghost,JonSmith/Ghost,mtvillwock/Ghost,jorgegilmoreira/ghost,v3rt1go/Ghost,trepafi/ghost-base,arvidsvensson/Ghost,olsio/Ghost,kevinansfield/Ghost,chris-yoon90/Ghost,qdk0901/Ghost,allanjsx/Ghost,ivanoats/ivanstorck.com,handcode7/Ghost,olsio/Ghost,tadityar/Ghost,tyrikio/Ghost,patrickdbakke/ghost-spa,mattchupp/blog,GroupxDev/javaPress,NodeJSBarenko/Ghost,mattchupp/blog,devleague/uber-hackathon,pollbox/ghostblog,manishchhabra/Ghost,aroneiermann/GhostJade,laispace/laiblog,ClarkGH/Ghost,sceltoas/Ghost,ryanbrunner/crafters,thinq4yourself/Unmistakable-Blog,kevinansfield/Ghost,jaswilli/Ghost,sfpgmr/Ghost,zhiyishou/Ghost,Romdeau/Ghost,scopevale/wethepeopleweb.org,MadeOnMars/Ghost,jamesslock/Ghost,aroneiermann/GhostJade,pathayes/FoodBlog,etanxing/Ghost,hilerchyn/Ghost,influitive/crafters,atandon/Ghost,PaulBGD/Ghost-Plus,hilerchyn/Ghost,telco2011/Ghost,diancloud/Ghost,rito/Ghost,ericbenson/GhostAzureSetup,adam-paterson/blog,telco2011/Ghost,smedrano/Ghost,bbmepic/Ghost,NamedGod/Ghost,jiangjian-zh/Ghost,jin/Ghost,dai-shi/Ghost,akveo/akveo-blog,disordinary/Ghost,RoopaS/demo-intern,stridespace/Ghost,davidenq/Ghost-Blog,telco2011/Ghost,rizkyario/Ghost,bitjson/Ghost,kaiqigong/Ghost,arvidsvensson/Ghost,ignasbernotas/nullifer,ghostchina/Ghost.zh,aexmachina/blog-old,RufusMbugua/TheoryOfACoder,lukaszklis/Ghost,skmezanul/Ghost,claudiordgz/Ghost,obsoleted/Ghost,ivantedja/ghost,vloom/blog,r1N0Xmk2/Ghost,johngeorgewright/blog.j-g-w.info,rizkyario/Ghost,SachaG/bjjbot-blog,zackslash/Ghost,letsjustfixit/Ghost,flpms/ghost-ad,lf2941270/Ghost,vishnuharidas/Ghost,wemakeweb/Ghost,thehogfather/Ghost,NikolaiIvanov/Ghost,djensen47/Ghost,situkangsayur/Ghost,sebgie/Ghost,omaracrystal/Ghost,DesenTao/Ghost,panezhang/Ghost,ryanbrunner/crafters,klinker-apps/ghost,sergeylukin/Ghost,beautyOfProgram/Ghost,Coding-House/Ghost,wspandihai/Ghost,optikalefx/Ghost,ddeveloperr/Ghost,bisoe/Ghost,dbalders/Ghost,Gargol/Ghost,Azzurrio/Ghost,Remchi/Ghost,kortemy/Ghost,ManRueda/Ghost,Dnlyc/Ghost,daihuaye/Ghost,dylanchernick/ghostblog,singular78/Ghost,UsmanJ/Ghost,skleung/blog,johngeorgewright/blog.j-g-w.info,AnthonyCorrado/Ghost,cysys/ghost-openshift,lethalbrains/Ghost,Alxandr/Blog,lukekhamilton/Ghost,Trendy/Ghost,ineitzke/Ghost,jgladch/taskworksource,BayPhillips/Ghost,Japh/shortcoffee,anijap/PhotoGhost,daimaqiao/Ghost-Bridge,ananthhh/Ghost,axross/ghost,riyadhalnur/Ghost,cysys/ghost-openshift,woodyrew/Ghost,julianromera/Ghost,pollbox/ghostblog,jomofrodo/ccb-ghost,dggr/Ghost-sr,ygbhf/Ghost,mlabieniec/ghost-env,schematical/Ghost,flpms/ghost-ad,mohanambati/Ghost,sifatsultan/js-ghost,bosung90/Ghost,floofydoug/Ghost,leninhasda/Ghost,andrewconnell/Ghost,carlyledavis/Ghost,rchrd2/Ghost,TryGhost/Ghost,memezilla/Ghost,lanffy/Ghost,AlexKVal/Ghost,Kaenn/Ghost,etdev/blog,veyo-care/Ghost,liftup/ghost,imjerrybao/Ghost,zumobi/Ghost,greenboxindonesia/Ghost,epicmiller/pages,allanjsx/Ghost,situkangsayur/Ghost,Sebastian1011/Ghost,ashishapy/ghostpy,manishchhabra/Ghost,barbastan/Ghost,javimolla/Ghost,PaulBGD/Ghost-Plus,mikecastro26/ghost-custom,Kikobeats/Ghost,klinker-apps/ghost,NovaDevelopGroup/Academy,omaracrystal/Ghost,Dnlyc/Ghost,greyhwndz/Ghost,JohnONolan/Ghost,Feitianyuan/Ghost,Elektro1776/javaPress,johnnymitch/Ghost,kaiqigong/Ghost,PDXIII/Ghost-FormMailer,bosung90/Ghost,MrMaksimize/sdg1,hnarayanan/narayanan.co,k2byew/Ghost,SachaG/bjjbot-blog,Polyrhythm/dolce,ryansukale/ux.ryansukale.com,NamedGod/Ghost,schneidmaster/theventriloquist.us,lanffy/Ghost,phillipalexander/Ghost,uniqname/everydaydelicious,gabfssilva/Ghost,pensierinmusica/Ghost,kolorahl/Ghost,lf2941270/Ghost,Brunation11/Ghost,djensen47/Ghost,acburdine/Ghost,cwonrails/Ghost,allanjsx/Ghost,psychobunny/Ghost,bbmepic/Ghost,llv22/Ghost,axross/ghost,katiefenn/Ghost,metadevfoundation/Ghost,patterncoder/patterncoder,ManRueda/manrueda-blog,JulienBrks/Ghost,Kaenn/Ghost,ballPointPenguin/Ghost,neynah/GhostSS,theonlypat/Ghost,ITJesse/Ghost-zh,trunk-studio/Ghost,Klaudit/Ghost,hyokosdeveloper/Ghost,ivanoats/ivanstorck.com,duyetdev/islab,hoxoa/Ghost,weareleka/blog,andrewconnell/Ghost,mlabieniec/ghost-env,jgillich/Ghost,BayPhillips/Ghost,ITJesse/Ghost-zh,jiachenning/Ghost,jacostag/Ghost,smedrano/Ghost,rafaelstz/Ghost,javimolla/Ghost,mttschltz/ghostblog,lowkeyfred/Ghost,greenboxindonesia/Ghost,schematical/Ghost,wallmarkets/Ghost,francisco-filho/Ghost,novaugust/Ghost,memezilla/Ghost,v3rt1go/Ghost,metadevfoundation/Ghost,LeandroNascimento/Ghost,sunh3/Ghost,YY030913/Ghost,zeropaper/Ghost,kortemy/Ghost,Alxandr/Blog,GarrethDottin/Habits-Design,cobbspur/Ghost,netputer/Ghost,ashishapy/ghostpy,sajmoon/Ghost,Netazoic/bad-gateway,gleneivey/Ghost,augbog/Ghost,dqj/Ghost,leonli/ghost,tksander/Ghost,SkynetInc/steam,JonSmith/Ghost,devleague/uber-hackathon,prosenjit-itobuz/Ghost,rameshponnada/Ghost,codeincarnate/Ghost,sceltoas/Ghost,cqricky/Ghost,Rovak/Ghost,pbevin/Ghost,theonlypat/Ghost,load11/ghost,freele/ghost,JohnONolan/Ghost,KnowLoading/Ghost,sunh3/Ghost,nmukh/Ghost,rchrd2/Ghost,codeincarnate/Ghost,delgermurun/Ghost,Smile42RU/Ghost,rmoorman/Ghost,Netazoic/bad-gateway,epicmiller/pages,jaguerra/Ghost,riyadhalnur/Ghost,Brunation11/Ghost,Romdeau/Ghost,allspiritseve/mindlikewater,bsansouci/Ghost,nneko/Ghost,adam-paterson/blog,kevinansfield/Ghost,vainglori0us/urban-fortnight,dylanchernick/ghostblog,Klaudit/Ghost,mayconxhh/Ghost,petersucks/blog,leonli/ghost,jiachenning/Ghost,cicorias/Ghost,anijap/PhotoGhost,dgem/Ghost,Coding-House/Ghost,Smile42RU/Ghost,PDXIII/Ghost-FormMailer,tanbo800/Ghost,panezhang/Ghost,daihuaye/Ghost,ignasbernotas/nullifer,kwangkim/Ghost,IbrahimAmin/Ghost,influitive/crafters,augbog/Ghost,mttschltz/ghostblog,alexandrachifor/Ghost,tchapi/igneet-blog,e10/Ghost,mtvillwock/Ghost,Sebastian1011/Ghost,hnq90/Ghost,woodyrew/Ghost,hoxoa/Ghost,RufusMbugua/TheoryOfACoder,beautyOfProgram/Ghost,cysys/ghost-openshift,mnitchie/Ghost,lukaszklis/Ghost,ljhsai/Ghost,ASwitlyk/Ghost,edsadr/Ghost,daimaqiao/Ghost-Bridge,edsadr/Ghost,ghostchina/website,load11/ghost,liftup/ghost,yanntech/Ghost,notno/Ghost,wspandihai/Ghost,Netazoic/bad-gateway,Jai-Chaudhary/Ghost,benstoltz/Ghost,trunk-studio/Ghost,rollokb/Ghost,diogogmt/Ghost,jaguerra/Ghost,STANAPO/Ghost,skleung/blog,tanbo800/Ghost,yundt/seisenpenji,tandrewnichols/ghost,carlyledavis/Ghost,johnnymitch/Ghost,SkynetInc/steam,InnoD-WebTier/hardboiled_ghost,thinq4yourself/Unmistakable-Blog,makapen/Ghost,llv22/Ghost,IbrahimAmin/Ghost,ngosinafrica/SiteForNGOs,dggr/Ghost-sr,AlexKVal/Ghost,PepijnSenders/whatsontheotherside,jomofrodo/ccb-ghost,kmeurer/GhostAzureSetup,PepijnSenders/whatsontheotherside,jgillich/Ghost,jaswilli/Ghost,lethalbrains/Ghost,kwangkim/Ghost,barbastan/Ghost,JonathanZWhite/Ghost,letsjustfixit/Ghost,disordinary/Ghost,mohanambati/Ghost,vainglori0us/urban-fortnight,JohnONolan/Ghost,r14r/fork_nodejs_ghost,dymx101/Ghost,edurangel/Ghost,Jai-Chaudhary/Ghost,singular78/Ghost,veyo-care/Ghost,wemakeweb/Ghost,Japh/shortcoffee,claudiordgz/Ghost,cqricky/Ghost,pedroha/Ghost,laispace/laiblog,BlueHatbRit/Ghost,ghostchina/Ghost-zh,mnitchie/Ghost,thehogfather/Ghost,hnarayanan/narayanan.co,katrotz/blog.katrotz.space,morficus/Ghost,krahman/Ghost,petersucks/blog,velimir0xff/Ghost,weareleka/blog,Xibao-Lv/Ghost,syaiful6/Ghost,rizkyario/Ghost,Aaron1992/Ghost,vloom/blog,jomahoney/Ghost,pathayes/FoodBlog,hyokosdeveloper/Ghost,AnthonyCorrado/Ghost,TryGhost/Ghost,jacostag/Ghost,ManRueda/manrueda-blog,tandrewnichols/ghost,lukw00/Ghost,ananthhh/Ghost,xiongjungit/Ghost,makapen/Ghost,thomasalrin/Ghost,neynah/GhostSS,qdk0901/Ghost,davidenq/Ghost-Blog,praveenscience/Ghost,gabfssilva/Ghost,ghostchina/Ghost.zh,bigertech/Ghost,blankmaker/Ghost,kolorahl/Ghost,kmeurer/Ghost,Rovak/Ghost,PeterCxy/Ghost,STANAPO/Ghost,dai-shi/Ghost,mdbw/ghost,flomotlik/Ghost,sifatsultan/js-ghost,syaiful6/Ghost,benstoltz/Ghost,mlabieniec/ghost-env,PeterCxy/Ghost,thomasalrin/Ghost,FredericBernardo/Ghost,morficus/Ghost,davidmenger/nodejsfan,wangjun/Ghost,InnoD-WebTier/hardboiled_ghost,neynah/GhostSS,cwonrails/Ghost,zackslash/Ghost,etanxing/Ghost,schneidmaster/theventriloquist.us,bastianbin/Ghost,rouanw/Ghost,shrimpy/Ghost,yundt/seisenpenji,sangcu/Ghost,edurangel/Ghost,chevex/undoctrinate,kaychaks/kaushikc.org,xiongjungit/Ghost,jamesslock/Ghost,fredeerock/atlabghost,yanntech/Ghost,netputer/Ghost,r1N0Xmk2/Ghost,etdev/blog,Elektro1776/javaPress,sankumsek/Ghost-ashram,phillipalexander/Ghost,dYale/blog,NovaDevelopGroup/Academy,chris-yoon90/Ghost,shannonshsu/Ghost,kortemy/Ghost,UnbounDev/Ghost,ballPointPenguin/Ghost,Remchi/Ghost,yangli1990/Ghost,stridespace/Ghost,obsoleted/Ghost,jorgegilmoreira/ghost,icowan/Ghost,no1lov3sme/Ghost,sebgie/Ghost,Netazoic/bad-gateway,ckousik/Ghost,darvelo/Ghost,jeonghwan-kim/Ghost,Japh/Ghost,alecho/Ghost,tidyui/Ghost,JonathanZWhite/Ghost,rameshponnada/Ghost,greyhwndz/Ghost,allspiritseve/mindlikewater,YY030913/Ghost,alecho/Ghost,cncodog/Ghost-zh-codog,rafaelstz/Ghost,diancloud/Ghost,optikalefx/Ghost,Kaenn/Ghost,ThorstenHans/Ghost,dqj/Ghost,aschmoe/jesse-ghost-app,jin/Ghost,dYale/blog,tidyui/Ghost,cncodog/Ghost-zh-codog,Kikobeats/Ghost,Shauky/Ghost,ManRueda/Ghost,Elektro1776/javaPress,vainglori0us/urban-fortnight,ryansukale/ux.ryansukale.com,novaugust/Ghost,skmezanul/Ghost,delgermurun/Ghost,mhhf/ghost-latex,dgem/Ghost,GarrethDottin/Habits-Design,prosenjit-itobuz/Ghost,sergeylukin/Ghost,hnq90/Ghost,ManRueda/manrueda-blog,icowan/Ghost,gcamana/Ghost,gleneivey/Ghost,zeropaper/Ghost,madole/diverse-learners,zumobi/Ghost,mayconxhh/Ghost,k2byew/Ghost,camilodelvasto/localghost,ljhsai/Ghost,notno/Ghost,Bunk/Ghost,denzelwamburu/denzel.xyz,NovaDevelopGroup/Academy,dbalders/Ghost,kaychaks/kaushikc.org,bitjson/Ghost,velimir0xff/Ghost,shannonshsu/Ghost,kmeurer/Ghost,GroupxDev/javaPress,acburdine/Ghost,UnbounDev/Ghost,bisoe/Ghost,r14r/fork_nodejs_ghost,stridespace/Ghost,Azzurrio/Ghost,devleague/uber-hackathon,floofydoug/Ghost,mohanambati/Ghost,GroupxDev/javaPress,nneko/Ghost,developer-prosenjit/Ghost,wangjun/Ghost,shrimpy/Ghost,nmukh/Ghost,atandon/Ghost,bastianbin/Ghost,Yarov/yarov,dymx101/Ghost,nakamuraapp/new-ghost,ClarkGH/Ghost,tadityar/Ghost,duyetdev/islab,Gargol/Ghost,Bunk/Ghost,dggr/Ghost-sr,BlueHatbRit/Ghost,aschmoe/jesse-ghost-app,letsjustfixit/Ghost,uploadcare/uploadcare-ghost-demo,bsansouci/Ghost,jeonghwan-kim/Ghost,Kikobeats/Ghost,ManRueda/Ghost,psychobunny/Ghost,leonli/ghost,no1lov3sme/Ghost,FredericBernardo/Ghost,janvt/Ghost,Loyalsoldier/Ghost,lcamacho/Ghost,exsodus3249/Ghost,KnowLoading/Ghost,jparyani/GhostSS,fredeerock/atlabghost,uploadcare/uploadcare-ghost-demo,davidmenger/nodejsfan,MadeOnMars/Ghost,Trendy/Ghost,ineitzke/Ghost,lukekhamilton/Ghost,jomofrodo/ccb-ghost,camilodelvasto/localghost,ThorstenHans/Ghost,VillainyStudios/Ghost,tyrikio/Ghost,mhhf/ghost-latex,carlosmtx/Ghost,leninhasda/Ghost,virtuallyearthed/Ghost,TribeMedia/Ghost,acburdine/Ghost,Loyalsoldier/Ghost,karmakaze/Ghost,pensierinmusica/Ghost,ErisDS/Ghost,achimos/ghost_as,mdbw/ghost,sajmoon/Ghost,javorszky/Ghost,ddeveloperr/Ghost,smaty1/Ghost,lowkeyfred/Ghost,cncodog/Ghost-zh-codog,melissaroman/ghost-blog,jiangjian-zh/Ghost,julianromera/Ghost,javorszky/Ghost,camilodelvasto/herokughost,ngosinafrica/SiteForNGOs,flomotlik/Ghost,JulienBrks/Ghost,ckousik/Ghost,tuan/Ghost,NikolaiIvanov/Ghost,jomahoney/Ghost