Fix tests

Under test, the ActivityManager may be null

Change-Id: I56848c572a18c9f16e235cefd662e5042863c525
1 file changed