Fix the CTS failure on device without AppWidget

The tests have had the code not to run themselves if AppWidget
is not supported, but that doesn't work correctly.

This CL fixed issues and makes the tests working correctly.

Bug: 77878131
Test: atest CtsAppWidgetTestCases

Change-Id: Ieb7376b2708b21fed70445581cbcc7f7c0fd335f
2 files changed