fix: do not panic on an Ingress path with a resource backend (#1728)