Guard against crash caused by treating non-scalar event as scalar

Bug: 64694