Fix PHP notices when saving a node that is not shared.