Investor pessimism is reaching extremes, and that may be good for markets