Refactor RepositoryDao: use trimToNull
Remove unreachable code in ListWorkflowDefinitionConverter

Assertions in AbstractWorkflowDefinition guarantee that errorState always exists.
Improve unit tests in CreateWorkflowConverterTest and ListWorkflowInstanceConverterTest