Fix undefined method error for NilClass
Fix undefined method error for NilClass

Add .try to prevent undefined method error for NilClass.
Edouard-chin/rails,mohitnatoo/rails,riseshia/railsguides.kr,kddeisz/rails,illacceptanything/illacceptanything,kddeisz/rails,Vasfed/rails,illacceptanything/illacceptanything,eileencodes/rails,felipecvo/rails,ledestin/rails,schuetzm/rails,coreyward/rails,kmcphillips/rails,flanger001/rails,gavingmiller/rails,Stellenticket/rails,flanger001/rails,mechanicles/rails,illacceptanything/illacceptanything,felipecvo/rails,utilum/rails,yhirano55/rails,amoody2108/TechForJustice,repinel/rails,marklocklear/rails,untidy-hair/rails,aditya-kapoor/rails,georgeclaghorn/rails,kaspth/rails,rails/rails,mtsmfm/rails,Stellenticket/rails,amoody2108/TechForJustice,Spin42/rails,Sen-Zhang/rails,pschambacher/rails,esparta/rails,tgxworld/rails,repinel/rails,88rabbit/newRails,palkan/rails,rails/rails,deraru/rails,brchristian/rails,kddeisz/rails,arunagw/rails,rbhitchcock/rails,shioyama/rails,rafaelfranca/omg-rails,starknx/rails,kmayer/rails,yalab/rails,notapatch/rails,illacceptanything/illacceptanything,shioyama/rails,riseshia/railsguides.kr,odedniv/rails,hanystudy/rails,bradleypriest/rails,kmcphillips/rails,MichaelSp/rails,repinel/rails,kirs/rails-1,aditya-kapoor/rails,88rabbit/newRails,Envek/rails,iainbeeston/rails,illacceptanything/illacceptanything,assain/rails,iainbeeston/rails,sealocal/rails,prathamesh-sonpatki/rails,fabianoleittes/rails,utilum/rails,gfvcastro/rails,eileencodes/rails,gcourtemanche/rails,iainbeeston/rails,bradleypriest/rails,illacceptanything/illacceptanything,ngpestelos/rails,alecspopa/rails,kirs/rails-1,lcreid/rails,riseshia/railsguides.kr,georgeclaghorn/rails,schuetzm/rails,sealocal/rails,rafaelfranca/omg-rails,voray/rails,ttanimichi/rails,untidy-hair/rails,mtsmfm/railstest,coreyward/rails,MichaelSp/rails,yawboakye/rails,ngpestelos/rails,assain/rails,travisofthenorth/rails,maicher/rails,baerjam/rails,Vasfed/rails,mohitnatoo/rails,sergey-alekseev/rails,joonyou/rails,joonyou/rails,gcourtemanche/rails,tjschuck/rails,Envek/rails,bogdanvlviv/rails,kmcphillips/rails,kaspth/rails,esparta/rails,xlymian/rails,hanystudy/rails,maicher/rails,repinel/rails,rossta/rails,Sen-Zhang/rails,georgeclaghorn/rails,yahonda/rails,prathamesh-sonpatki/rails,voray/rails,gauravtiwari/rails,voray/rails,gavingmiller/rails,yawboakye/rails,kachick/rails,deraru/rails,notapatch/rails,mijoharas/rails,illacceptanything/illacceptanything,pvalena/rails,gfvcastro/rails,jeremy/rails,vassilevsky/rails,illacceptanything/illacceptanything,mathieujobin/reduced-rails-for-travis,rbhitchcock/rails,felipecvo/rails,fabianoleittes/rails,iainbeeston/rails,odedniv/rails,brchristian/rails,untidy-hair/rails,vipulnsward/rails,rails/rails,gauravtiwari/rails,pvalena/rails,arunagw/rails,Sen-Zhang/rails,EmmaB/rails-1,xlymian/rails,tgxworld/rails,fabianoleittes/rails,mathieujobin/reduced-rails-for-travis,bradleypriest/rails,mathieujobin/reduced-rails-for-travis,mijoharas/rails,kddeisz/rails,matrinox/rails,yasslab/railsguides.jp,marklocklear/rails,odedniv/rails,EmmaB/rails-1,tjschuck/rails,kmayer/rails,bogdanvlviv/rails,kachick/rails,BlakeWilliams/rails,yalab/rails,vipulnsward/rails,ledestin/rails,eileencodes/rails,lucasmazza/rails,mtsmfm/rails,rafaelfranca/omg-rails,arunagw/rails,vassilevsky/rails,richseviora/rails,notapatch/rails,tgxworld/rails,tijwelch/rails,arjes/rails,pschambacher/rails,yalab/rails,Edouard-chin/rails,jeremy/rails,bolek/rails,yalab/rails,starknx/rails,sergey-alekseev/rails,MSP-Greg/rails,kenta-s/rails,Erol/rails,Erol/rails,printercu/rails,sealocal/rails,MichaelSp/rails,kmcphillips/rails,arjes/rails,esparta/rails,yhirano55/rails,illacceptanything/illacceptanything,MSP-Greg/rails,maicher/rails,mechanicles/rails,kaspth/rails,vipulnsward/rails,lucasmazza/rails,stefanmb/rails,arjes/rails,travisofthenorth/rails,Stellenticket/rails,88rabbit/newRails,BlakeWilliams/rails,pvalena/rails,ttanimichi/rails,illacceptanything/illacceptanything,riseshia/railsguides.kr,alecspopa/rails,baerjam/rails,kamipo/rails,rossta/rails,mohitnatoo/rails,yhirano55/rails,palkan/rails,illacceptanything/illacceptanything,prathamesh-sonpatki/rails,travisofthenorth/rails,tgxworld/rails,aditya-kapoor/rails,rbhitchcock/rails,tjschuck/rails,deraru/rails,illacceptanything/illacceptanything,lcreid/rails,esparta/rails,mohitnatoo/rails,bogdanvlviv/rails,shioyama/rails,aditya-kapoor/rails,lcreid/rails,Edouard-chin/rails,kachick/rails,gcourtemanche/rails,ngpestelos/rails,sergey-alekseev/rails,palkan/rails,amoody2108/TechForJustice,lcreid/rails,flanger001/rails,kmayer/rails,georgeclaghorn/rails,richseviora/rails,eileencodes/rails,betesh/rails,Vasfed/rails,betesh/rails,vipulnsward/rails,koic/rails,alecspopa/rails,bolek/rails,travisofthenorth/rails,yawboakye/rails,stefanmb/rails,Envek/rails,ttanimichi/rails,arunagw/rails,deraru/rails,baerjam/rails,koic/rails,koic/rails,Vasfed/rails,assain/rails,mijoharas/rails,joonyou/rails,bolek/rails,Envek/rails,printercu/rails,samphilipd/rails,mtsmfm/rails,tijwelch/rails,illacceptanything/illacceptanything,pvalena/rails,gavingmiller/rails,coreyward/rails,rossta/rails,schuetzm/rails,matrinox/rails,mechanicles/rails,yasslab/railsguides.jp,MSP-Greg/rails,kamipo/rails,kenta-s/rails,illacceptanything/illacceptanything,hanystudy/rails,jeremy/rails,flanger001/rails,yawboakye/rails,yahonda/rails,bogdanvlviv/rails,fabianoleittes/rails,joonyou/rails,MSP-Greg/rails,printercu/rails,schuetzm/rails,mtsmfm/railstest,gfvcastro/rails,betesh/rails,Edouard-chin/rails,Spin42/rails,samphilipd/rails,starknx/rails,rails/rails,utilum/rails,ledestin/rails,yasslab/railsguides.jp,jeremy/rails,kenta-s/rails,gauravtiwari/rails,elfassy/rails,mtsmfm/railstest,notapatch/rails,kamipo/rails,printercu/rails,xlymian/rails,illacceptanything/illacceptanything,gfvcastro/rails,marklocklear/rails,samphilipd/rails,yhirano55/rails,Erol/rails,Erol/rails,elfassy/rails,richseviora/rails,tjschuck/rails,BlakeWilliams/rails,untidy-hair/rails,matrinox/rails,betesh/rails,baerjam/rails,yahonda/rails,palkan/rails,elfassy/rails,yasslab/railsguides.jp,lucasmazza/rails,utilum/rails,Spin42/rails,tijwelch/rails,vassilevsky/rails,stefanmb/rails,assain/rails,brchristian/rails,Stellenticket/rails,BlakeWilliams/rails,mechanicles/rails,yahonda/rails,shioyama/rails,pschambacher/rails,kirs/rails-1,EmmaB/rails-1,prathamesh-sonpatki/rails