Fixes getActivity() == null in OtrFragment.