Architect DateTimeDiff returning null in Kotlin service payload

We’ve got a Kotlin backend receiving webhook payloads from Genesys Cloud. The Architect flow uses DateTimeDiff to calculate session duration. The expression looks like DateTimeDiff(InteractionStart, Now, 'seconds'). On the Android side, the field comes through as null instead of an integer. Is the expression syntax wrong or is the SDK dropping the field? Here’s the payload snippet:

{"duration": null}

Tried casting in Kotlin but no luck.