Many investors have historically flocked to the safety of consumer staples stocks like Walmart (NASDAQ.