Real Madrid and José Mourinho were one 7-minute stretch away from utter humiliation in the Champions League.