fix the debug that a push after pulling a NDEF message always fails
use sizeof calculate message's length