send 404 instead of 500 when thread could not be found.

@gwprice 

low-priority tweak to handle thread-not-found with a standard 404.  corresponding PR in edx-platform to follow.