BUG: Fix crash in transforms on malformed CUSTOM events.

Fixes a crash in various transforms when providing CUSTOM events whose fields
don't match the fields required for the transform.