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

Fixes issue #402

I certify that I own, and have sufficient rights to contribute, all source code and related material intended to be compiled or integrated with the source code for the #develop open source product (the "Contribution"). My Contribution is licensed under the MIT License.