Merge "Check if the trace was stopped before starting the tracing thread" into rvc-dev am: 164a1d8b1e am: 0e6538a98e am: a26ba29385

Change-Id: Ic06f8630eba61e1627e3c49a903b52d508b2742d