title: NavController crashes upon orientation change
body: <p>I'm not really sure what I'm doing wrong here. Simple setup, single activity with fragments controlled by a bottom bar inside, so far so good. The start fragment has a button inside which should navigate to another fragment.</p>
  
  <p>Here's the onclicklistener for the button inside my fragment class:</p>
  
  <pre><code>override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
      super.onViewCreated(view, savedInstanceState)
      add_step_fab.setOnClickListener {
          Navigation.findNavController(view).navigate(R.id.fragmentAtoB)
      }
  }
  </code></pre>
  
  <p>Here's my action in the navigation.xml:</p>
  
  <pre><code>&lt;fragment android:id="@+id/navigation_main" android:name="com.test.test.fragments.AFragment"
            android:label="Fragment A" tools:layout="@layout/fragment_a"&gt;
      &lt;action android:id="@+id/fragmentAtoB"
              app:destination="@id/fragmentB" app:enterAnim="@anim/nav_default_enter_anim"
              app:exitAnim="@anim/nav_default_exit_anim" app:popEnterAnim="@anim/nav_default_pop_enter_anim"
              app:popExitAnim="@anim/nav_default_pop_exit_anim"/&gt;
  &lt;/fragment&gt;
  </code></pre>
  
  <p>The navigation works, but I get the standard </p>
  
  <pre><code>java.lang.IllegalArgumentException: navigation destination com.test.test:id/fragmentAtoB is unknown to this NavController
  </code></pre>
  
  <p>error when I click on the button after rotating my screen, split screening the app, or sometimes seemingly randomly. Looks like it has something to do with the configuration change?</p>
  
  <p>EDIT:
  I also tried using </p>
  
  <pre><code>val clickListener: View.OnClickListener = Navigation.createNavigateOnClickListener(R.id.fragmentAtoB)
      add_step_fab.setOnClickListener(clickListener)
  </code></pre>
  
  <p>with the same issue as above.</p>
  
  <p>Checking if i'm actually in the same fragment, as some suggested for users who are having the same exception (but for unrelated reasons), such as:</p>
  
  <pre><code>if (controller.currentDestination?.id == R.id.navigation_main) {
              controller.navigate(R.id.fragmentAtoB)
          }
  </code></pre>
  
  <p>also didn't help.</p>