[ticket/12262] Fix event exporter and tests it

http://tracker.phpbb.com/browse/PHPBB3-12262