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

Jira issue - https://wso2.org/jira/browse/MB-784
Fixed with 2696cfabd556eb85623a1e8379f8d2f14bfa7d9a.