Catch and handle HTTP 500 error.

Fixes https://github.com/rhiever/reddit-analysis/issues/10