Fix issue with workflowSubmissionId being persisted as 0 when it is null, causing server error