Fix issue with request timeout for invalid routes