A foul - or in this case a penalty - can only be awarded if the ball is in play. If the offence happens before the corner is kicked then the referee can't give a foul, they can only take disciplinary action - in this case a yellow card to Marc Cucurella.
