fix(pages): use ElggBatch to avod memory leaks

Temporary fix for #6477