Fixed #22650 -- Fixed regression on prefetch_related.