Fix event warning crash when a listener is removed while dispatching event
Also, expose TestRunner.setDumpConsoleMessages() to tests to control whether
console messages are included into the test output.
BUG=
612377
Committed:
https://crrev.com/cb2227837d5d0e6a59e73eb62e56d53534a69386
Cr-Commit-Position: refs/heads/master@{#395653}