Make sure scope isn't null. Fixes code analysis warning from #331.
Merge pull request #332 from blairconrad/guard-against-null-scope-in-DerivedTypeArgumentTests

Make sure scope isn't null. Fixes code analysis warning from #331.