Add null check in background thread

Flag: NONE
Bug: 338367086
Test: build.
Change-Id: I1bdbed4c6b7301263c67cc833f110d27b85637e2
1 file changed