Drop GetGenericArguments() output checks against null

Fix #1771

The two additional commits can be easily dropped if you feel they do not bring any value.

/cc @SimonCropp