createProjectFromXML is not supposed to be called for a project which already exists, but failed to enforce this.