CNBC's Jim Cramer unpacked Tuesday's market action and told investors that it can be worthwhile to stick with good stocks as they weather losses.