Fix getting undefined id from PartialObjectProxy.