Add window context to forEach for IE9 (fixes #70297930)