Add in missing error check
Add in missing error check

sharelatex/clsi-sharelatex,EDP-Sciences/clsi-sharelatex,fancycharts/clsi-sharelatex,sharelatex/clsi-sharelatex,dwrensha/clsi-sharelatex,dwrensha/clsi-sharelatex,fancycharts/clsi-sharelatex