Fix assertion in jump threading (PR13405).