Stationarity and the random phase condition in the statistical theory of the electromagnetic field