Avoid sending empty function names to TransactionProfiler

* This could happen if the Profiler was a stub

Change-Id: Id4f635f899ee3c0ca85acf1b1e4cde47dcbbdc75
Merge "Avoid sending empty function names to TransactionProfiler"