fix(pages): use ElggBatch to avoid memory leaks

Temporary fix for #6477

* [x] shorter commit message title
* [ ] figure out timeout problem