Report the correct error when request.matched_route is none.