Fix issue with missing type parameter

If the swagger definition is missing the type parameter it kills the UI.