Drop GetGenericArguments() output checks against null

Fix #1771
Tiny optimization
Reduce nesting to improve readability
Merge pull request #1775 from nulltoken/ntk/fix/1771

Drop GetGenericArguments() output checks against null