Carlo Ancelotti's side endured a baffling evening at Mestalla, but were rescued by some late magic by their star man.