batches: make the published field optional
Created by: LawnGnome
For now, we'll just treat a missing field as being equivalent to being unpublished, so there's no functional difference in practice for users.
This is very much a table setting PR; #21092 is next.
Part two of #18277 (closed).