move null state check to WorkflowInstanceService layer