Walmart is facing short-term pressures that are leading investors to miss the long-term opportunity.