Fixed bug in AtomEventFramework.

Mappings from event types to listeners might not be initialized.