added a couple of null checks in
Merge branch 'master' of github.com:sharelatex/translations-sharelatex