Eden Hazard scored his first Real Madrid goal in eight months on Thursday as La Liga's leaders staged a dramatic comeback with 10 men to scrape past Elche in the Copa del Rey.