Fix TUNNELRECV data and length inconsistency problem

Fixes the problem that a TUNNELRECV message may have an inconsistency between the length of the data and the actual data it carries.