Use commitAllowingStateLoss to add a fragment.