ticket.60826:Fix crash when dismiss() called from DialogFragment.