Fix printing messages with zero-length.