Fix ChangesetSpec serialization
Created by: eseliger
ChangesetSpecs with a PublishedValue that's Nil()
would've been included as "published": null
in JSON, hence failing validation. This is a workaround to properly marshal the struct as per our needs. We should revisit this later.
Closes https://github.com/sourcegraph/sourcegraph/issues/25968