Remove apparently dead code in thread.coffee

I can't find any behaviour difference with this code removed. Threads
are correctly collapsed and uncollapsed when the search is changed or
cleared.