Fix bug thrown by Firefox that event is not defined.
Firefox does not render the event as null when its not defined. That is what you would expect, but Chrome always ignored it, therefore the bug was never found before.
Firefox does not render the event as null when its not defined. That is what you would expect, but Chrome always ignored it, therefore the bug was never found before.