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

Fixes issue #402