Fix ERRAI-782: Avoid NPE with non-parameterized types from ContextualTypeProvider.