NPE fixed by correctly implementing equals

Worklfow is Option and could be null when receiving InstanceStatus