Fix EventEmitter instance check