Return 404 instead of 400 when thread not found

Co-authored-by: Greg Price <gprice@edx.org>