Closes #80

Fixes an NPE when deploying a process from the modeler.
Merge pull request #81 from dpratt/master

Fix NPE when deploying model