Fixing skipped OnFrameEnd event for first page.