Add null check of getActivity() in initializeSubscriptions.

In initializeSubscriptions(), the fragment may be detached from
the activity. Without the null check it may end up with crash.

Bug: 62522732
Test: build
Change-Id: I9d208f6f2bc8394e76ae50495397f0318bd7ceb8
1 file changed