Workaround for null .Parent

Hi Mads,

I was still getting a null reference exception.

The repro (for me) was creating a new "HTML Application with TypeScript" project and then creating a new test.json file at the project root.  An alternate was opening this test.json file (which has to be empty) after having saved it as blank and closed Visual Studio.

This is the fix.  Thanks again for this cool little add-in.