[Core] Try to fix a NullReferenceException in MSBuildProjectHandler.ImportTargets

This seems to be the intent of the code and it fixes the regression exposed
in the tests in Ide.Tests.dll