null pointer check at the NewProjectWizzard

(cherry picked from commit 3bc58b2fd385e7ce08b1db5519522c9a0e85f6da)