[TD-8010] added optional parameters to unregister_worker_with_heartbeat