Fix StringIndexOutOfBoundsException in TextMessage.toStringPayload

Issue: SPR-12307

I have signed and agree to the terms of the SpringSource Individual 
Contributor License Agreement.