Fix the case in which a user restarts to an event before the previous -g...

... target existed.

Resolves #910.