[stats] fix ArithmeticDecoder zero-padding

Fix edge case in some cases where encoded input has fewer than 6 bytes and we get unlucky with underflow.  See comments in TestArithmeticCodec.testDecodeZeroPaddingRequired() for more details.