Error: Polymorphic skipped; you should never see this
### Summary

I have a single table table which I use it's type column to create polymorphic types. I do it using `@interface mode:single` smart tag. Also, I extend the generated polymorphic types with `makeExtendSchemaPlugin` to add some additional fields. Most of them are connection fields. I have another plugin with `makeWrapPlansPlugin` to wrap plans for these nested connection fields.

Everything is fine until I query one of these nested connection fields.

### Steps to reproduce

I have created a small repo reproducing the issue.
[Link to repo](https://github.com/achintha-weerasinghe/ax-pg-poly-bug-reproduction)

Follow the README.md on the repo to get it running.

### Expected results

Any query should work with no errors.

### Actual results

If you query any other field rather than a connection field, everything is okay. But if you query a connection field, then I get `Error: Polymorphic skipped; you should never see this`or `TypeError: Cannot read properties of undefined (reading 'length')` error.

If you remove this `makeWrapPlansPlugin` plugin everything works as expected.