The Leopard Racing rider produced a comeback for the ages to take victory at Misano and keep his title hopes alive