Force rendering before we dispatch any event

This is so that the event path will be correct when the event is dispatched.
Merge pull request #129 from arv/render-on-dispatch

Force rendering before we dispatch any event