Fix segfault in zim_Phalcon_Events_Manager_attach