Fix ClassCastException: PsiParameterImpl cannot be cast to JetParameter

Fixes EA-59008. No new tests added, difficult to reproduce