chore(NPE): Add null check

related to CAM-1363
Merge branch 'master' of github.com:camunda/camunda-modeler