Ergodic behavior in the statistical theory of nuclear reactions