TDIS-4435 update messaging module, using unified tool for error checking.
PTSDK-1457 correct loadMessageBody/loadMessageAttachment callback