event: Trivial cleanup

We can avoid a lookup by simply checking if the alarm id
isn't NULL.
parent 4b6a5599
Pipeline #189780 passed with stage
in 14 minutes and 32 seconds