avoid NPE
Merge pull request #929 from debrief/hotfix/avoid_travis_build_fail

avoid NPE