util.events: Fix comparison of event_name with nil instead of false (fixes #554)