Fixes #2162 Threadlist can contain a thread without name, id etc.

Reference: http://dev.mybb.com/issues/2162