Secure removal of 'type is prerender' events

This fixes the issue #91.
`type` value was `prerender` and it was not available in the `EventEmitter` instance.