More areas to avoid NPE when calling isSearching

Looked through the code where we call ((PageActivity)getActivity()).isSearching()
Let's make it a pattern.

Bug: T78115
Change-Id: I272b7d17b9a411616f401752dbc8147202dd3ac6