Real Madrid was faced with unfamiliar surroundings as it played its Champions League match against Legia Warsaw in an empty stadium.