Fixed MessageEventSource's visibility problem for addListener and
removeListener.