Fixes https://www.measurethat.net/Benchmarks/Show/17805/0/custom-event-vs-callback by making sure the console log and actual sync code execution happens. There's no point to dispatch an event without ever listening to it. Such benchmark was not realistic.