If the test fails to initialize properly, tearDown is still called, and we may have null Launcher activity. We want to safely skip using that activity to avoid a NullPointerException that would hide the original error message. Bug: 304306290 Test: presubmit Flag: N/A Change-Id: I89774a92ede046fa3afadacc62df25f4f496f4e7