Use null safe equals check in AbstractWorkflowDefinition#getState()