Fixes issue #402: NullReferenceException when creating new WPF application project
Merge pull request #403 from linquize/issue-402

Fixes issue #402: NullReferenceException when creating new WPF application project