Made the getProcessInstance() return null not-active process instances.