Fix message content retrieval mechanism for messages having multiple chunks of data

Jira issue - https://wso2.org/jira/browse/MB-784