Guarded the getActivity() call

Bug:7026011
Change-Id: Ib4f4fe97023b90472586379679e0e6ab4876fd07
1 file changed