Merge "Check if the trace was stopped before starting the tracing thread" into rvc-dev am: 164a1d8b1e am: 35c9d2f04c am: 7bfc0776b7 am: 065dd83f4c

Change-Id: I9c8b6fba60a057285c375c959da67d0225adeffe