Throw an exception on trying to save a DomainObject with no primary key.