Fix for crash when setting string on a text component with a string
length less than the string being set.