Issue #3114869 by andypost, Gábor Hojtsy, catch: \Drupal\Core\Routing\Router::generate() is deprecated but it is on an interface