fix exception in logging if no handlers given for event