recompute natural key if it is an empty dictionary