BHV-8917: Remove for...in loop

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