Fixed an issue where Firefox would lose the type of an event.

Because it returns false for event.hasOwnProperty('type');