add plugin_event_exists()

to be compatible with multiple mantis releases,
plugins need to check if an event exist or not.

avoid message:
APPLICATION WARNING #2400: Event « EVENT_MANAGE_PROJECT_DELETE » is not defined.