Electoral Uncertainty and Public Goods