Fix possible crash(es) on screen rotation.

- One crash may happen in NearbyFragment, where we call
  invalidateOptionsMenu (unnecessarily) when we're no longer attached to
  the activity.
- Another similar crash may happen in PageViewFragment.

Change-Id: I1b3330185e5b54cbb16e064108fe35c141c901ca