Add a stat to track discarded messages, encode() with no output or error