In my opinion, it is a flaw in the game because so far, no counter-attack has lead to a goal after the GK gave away possession in the opponents half or no long shots has been tried to the 'empty' net. The developers probably missed or did not considered the situation of a GK taking a free-kick in an opponent's half.