Fixed identifiers retrieval on ReferenceRepository if Entity is not yet managed my UnitOfWork.