initialize threads property to an array for text action
check for empty text message
Merge pull request #314 from scrollback/bug-fixes

Bug fixes