fix: reduce/foreach state variable should not be reset each iteration by itchyny · Pull Request #3205 · jqlang/jq

When the UPDATE query in a reduce or foreach syntax does not emit a value, it should simply skip updating the state variable. But currently it resets the state variable to null.