title: SearchView getActionView returning null
body: <p>This was working a few days ago, but suddenly it stopped. I only want to use the action bar search widget when certain fragment is visible.</p>
  
  <p>Now I'm unable to get the <code>SearchView</code>, now <code>getActionView</code> always returns null.</p>
  
  <p><strong>searchable.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;searchable xmlns:android="http://schemas.android.com/apk/res/android"
          android:label="@string/app_name"
          android:hint="@string/search_for_places"&gt;
  &lt;/searchable&gt;
  </code></pre>
  
  <p><strong>Manifest.xml</strong></p>
  
  <pre><code>&lt;activity
      android:name=".ui.activities.MainActivity"
      android:launchMode="singleTop"&gt;
      &lt;intent-filter&gt;
          &lt;action android:name="android.intent.action.MAIN"/&gt;
          &lt;category android:name="android.intent.category.LAUNCHER"/&gt;
          &lt;action android:name="android.intent.action.SEARCH"/&gt;
      &lt;/intent-filter&gt;
      &lt;meta-data
          android:name="android.app.searchable"
          android:resource="@xml/searchable"/&gt;
      &lt;meta-data
      android:name="android.app.default_searchable"
      android:value=".ui.activities.MainActivity" /&gt;
  &lt;/activity&gt;
  </code></pre>
  
  <p><strong>menu.xml</strong></p>
  
  
  
  <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:myapp="http://schemas.android.com/apk/res-auto"&gt;
      &lt;item
          android:id="@+id/action_search_place"
          android:icon="@drawable/ic_2_action_search"
          android:orderInCategory="1"
          android:title="@string/title_search"
          myapp:showAsAction="collapseActionView|ifRoom"
          myapp:actionViewClass="android.support.v7.widget.SearchView"/&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p><strong>The fragment</strong></p>
  
  <pre><code>...
  setHasOptionsMenu(true);
  ...
  
  
  
  @Override
  public void onCreateOptionsMenu(final Menu menu, final MenuInflater inflater) {
      inflater.inflate(R.menu.menu, menu);
      MenuItem searchItem = menu.findItem(R.id.action_search_place);
      mSearchView = (SearchView) MenuItemCompat.getActionView(searchItem);
  
      SearchManager searchManager = (SearchManager) getBaseActivity().getSystemService(Context.SEARCH_SERVICE);
      if (mSearchView != null) {
          mSearchView.setSearchableInfo(searchManager.getSearchableInfo(getActivity().getComponentName()));
          mSearchView.setIconifiedByDefault(true);
          mSearchView.setOnQueryTextListener(this);
      }
      super.onCreateOptionsMenu(menu, inflater);
  }
  </code></pre>