am 74512bea: Fix a NPE in the type parameter checking in stubs

* commit '74512bea742c1b962d64671fea7720ba38748655':
  Fix a NPE in the type parameter checking in stubs