Geo: Resolve "undefined method each_batch"

What does this MR do and why?

Fixes bug introduced by !77364 (merged).

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #349656 (closed)

Edited by Michael Kozono