Fix CustomEventEmitter error handling

Override .emit() to first check whether the error argument is an array. In case
it is an array, reduce it to the very first error and pass it to the original
EventEmitter.emit()
Removed .only from tests
Merge pull request #1240 from saschagehlich/feature/customeventemitter-throw-error

Fix CustomEventEmitter error handling