Prevent crash in prettyprint from zero-length data packets.