fix(chromium): fix a race when intialization does not finish before page close (#6975)
fix(chromium): fix a race when intialization does not finish before page close (#6975)

This is exposed by the flaky "should report new window downloads" test.
In this test a new page is created, initialized and closed before initialization
finishes. If `lifecycleEventsEnabled` fails with "Target closed error",
we correctly ignore the initialization failure, but a single usage of the
failed promise with `.then` fails anyway.
microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright