Prevent exception when creating new project