Demand Uncertainty, Incomplete Markets, and the Optimality of Rationing