BHV-8917: Remove for...in loop

Issue
-------
When there are no additional pages to generate (i.e. edge of list bounds), an unexpected page object is still evaluated, resulting in an error.

Fix
----
Convert an inappropriate and unnecessary `for...in` loop to a standard `for` loop.

Enyo-DCO-1.1-Signed-off-by: Aaron Tam <aaron.tam@lge.com>