Fix erroneous warning when there aren't any matching events.