only supply nonce if it is actually used to avoid schema validation errors