Fix build failure on responses without routes in 1.4.x

Backport for #3555568

Merge request reports

Loading