Secure removal of `type` is `prerender` events

This fixes the issue #91.