Fix NPE.

In case the error view is shown, mPager and mDirStack are both null.
Fix MINT reported NPE.
Allow state loss when switching between repo fragments.

After activity recreation, the navigation index will be restored anyway,
thus also making sure to restore the fragment state.