History suggests strong economy can ward off bear market