Support DialogFragment.dismissWithAllowingStateLoss()