Add null check of getActivity() in initializeSubscriptions.
am: b1eeb07ce5

Change-Id: I6a655b7d5b1b55b7a492d979e6b5cc44ac4af3ba