Issue #2966137 by vaplas, tim.plunkett: Circular entity references cause infinite loop in EntityReferenceItem::generateSampleValue()