Guard against event.data being null.