update_activity should only depend on element_id
The element variable is not available immediately as it depends on RetrieveElement. If that call fails, the exception handling crashes.
The element variable is not available immediately as it depends on RetrieveElement. If that call fails, the exception handling crashes.