prevent 0-pointer dereference in editor_routes.cc - fixes #5794