Simplify control flow by ignoring null.

If the writer needs to drain, then a subsequent read can return null. Rather
than forcing the user to handle these nulls, writers and parsers now treat null
as a no-op.