fixed bug 1716 - fixed an index out of bounds exception in repeatChatMessage

This should fix the issue. I had trouble reproducing the exception before fixing it because I could only get it to happen once so I'm not 100% that the issue is gone completely.