fix ActivityThread.getTopLevelResources NullPointerException

MIUI-17680

Change-Id: I9880249217a760fdd3fc169a316707ed70b313b8
Signed-off-by: mochangming <mochangming@xiaomi.com>