TEIID-3147 correcting bytes sent logic