fix gettitle errors

This will cause errors in gettitle, such as an HTTP 405 Method Not
Allowed response, to not send out an ugly exception. This was a bug that
got introduced due to the switch to requests.