do not event_del() if event was not priorly set. fixes #379
Merge branch 'master' into portable