Fix possible null dereference pointer in test (#4685)
Fix possible null dereference pointer in test (#4685)

* Fixed possible null dereference bug

* Removed extra changes

mono/msbuild,rainersigwald/msbuild,chipitsine/msbuild,sean-gilliam/msbuild,sean-gilliam/msbuild,chipitsine/msbuild,jeffkl/msbuild,rainersigwald/msbuild,rainersigwald/msbuild,cdmihai/msbuild,sean-gilliam/msbuild,rainersigwald/msbuild,jeffkl/msbuild,cdmihai/msbuild,jeffkl/msbuild,chipitsine/msbuild,AndyGerlicher/msbuild,AndyGerlicher/msbuild,mono/msbuild,AndyGerlicher/msbuild,mono/msbuild,chipitsine/msbuild,mono/msbuild,cdmihai/msbuild,jeffkl/msbuild,cdmihai/msbuild,AndyGerlicher/msbuild,sean-gilliam/msbuild