EventEmitter: Use hasOwn check in #off

* Add regression test.

Change-Id: Ic4fc809131b6277948915b8250e0ad65164ffd44