gkeys: Fix traceback for seed referenced before assignment