How to Default a Value from an Event to Null/Blank if it Doesn't Work?

Thanks . I’m still getting the error. I think it’s because the key testMode exists in the event but has no value.