You could always set Alert before regardless of what was in range. And you should be able to. Just because a hostile is in range doesn't mean I want to attack it, esp considering the hostile in this case is a free city.
Something changed since GS released, but I'm not sure when since I just played my first full GS game. I don't believe this is intended. You should be able to remain Alert and wake next turn if the threat still exists.