Serbia's Nikola Milenkovic was given the freedom of the Portugal penalty box to head home from a corner and halve the deficit.