Fix literal "null" strings in OutputImpl

At least the "content_pack" field of OutputImpl may be null (as an output
is not necessarily created from a content pack) and should not be persisted
as "null" (which String#valueOf() returns for null values).