Issue #2314359 by yched: Optimization: do not iterate on  fields in EntityViewBuilder::viewField().