Fixed NPE for new project wizard when no location is set
and user clicks on select profiles button.
    IDE-1277

    Fixed the bug that NamespaceURI and LocalPart validator doesn't work correctly.