TNL-549: Fix thread editing.

**Ticket:** [TNL-549](https://openedx.atlassian.net/browse/TNL-549)

@jimabramson , @tymofij, @cahrens  please review.
@jimabramson @gwprice this seems like an expensive operation to me. Is there any other way to get this information?