Fix issue with request timeout for invalid routes

@tadatuta @tavriaforever @gela-d