[ticket/12347] Safer in combination with template events

PHPBB3-12347