Despite an unpredictable market, CNBC's Jim Cramer says it's important to stay invested.