Winscope: Prevent layers trace from capturing entries once its disabled

Bug: 110052395
Test: manually capture Layers trace and check results
Test: run atest FlickerTest:CloseImeWindowToHomeTest
(some test runs were failing due to this issue)

Change-Id: Iadbc1894721e72f951ebdf127691010df4eb2bb9
1 file changed