TNL-549: Fix thread editing.

**Ticket:** [TNL-549](https://openedx.atlassian.net/browse/TNL-549)

@jimabramson , @tymofij, @cahrens  please review.
addressed, also removed IMO unnecessary `len` in check.