Protect against hiding while not attached

Change-Id: I44b16d2644c80c737ffc16bf11cc1259e3c3984b
Fixes: 36137783
Test: Edit QS
1 file changed