Fix NPE when deploying model

Fixes an NPE when deploying a process from the modeler.