Comments from JPMorgan Chase CEO Jamie Dimon contrast with investors’ recent willingness to look past wars, tariffs and other shocks.