prevent exception when trying to edit empty project