fix 500 on bad thread id input
Merge pull request #110 from eve-val/fix-bad-id-500

fix 500 on bad thread id input