Fixes #2162 Threadlist can contain a thread without name, id etc.
Minor fix
Merge pull request #246 from Stefan-ST/fix-2162

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