Look, if the ball crossed the line and considered a goal as a result, the goal stays even if the goalkeeper kicks it out. For example, Zidane took the penalty at the 2006 World Cup final, and the ball crossed the Italian goal line. The ball bounced out, but the officials still considered it as a goal.