Fix PR18381 - print a minimal diagnostic rather than assert on unresolved .secidx target