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

Change-Id: I48fe51a9c88b430c66eef42c4c6b16fe45b06065