Ancelotti admits Madrid were fortunate