bugfix where an exception was raised if threadsCollapsed is undefined