Fix bug when $state === null
Fix bug when $state === null

When isProcessComplete is called with a new model, the $state will be equal null, and it bug.
vas24x7/workflow-bundle,lexik/LexikWorkflowBundle