[TPL] Add mono internal API support

There was a compilation warning saying that it could never be the case (struct == null) which makes sense. Should I just remove this test?