Fixed wrong calculation of L2 pseudo-length in messages with rest octets.