fix 500 on bad thread id input

ohhh, you're right! I've seen this a couple times and forgot that it does that.