[ticket/11582] Test the event and and fix it.

PHPBB3-11582