Manchester City manager Manuel Pellegrini says 'it wasn't ideal' to lose captain Vincent Kompany to injury in their Champions League tie against Real Madrid.