Merge "Add null check of getActivity() in initializeSubscriptions."