Fix minor issue in JettyRequestUpgradeStrategy

Issue: SPR-10861
Add support for custom types in AMMH