Fixes #2. Corrects an null reference in the .NET 4.0 SDK.