Minor fix for EventDispatcher to be consistent with openfl-native