saltstack/salt — pull request #8003 by spahl (2013-10-21 19:44:24+00:00)
Title: Generate jid in _wait in state module if not specified

Otherwise one would get a KeyError. This can happen when called in the mine with queue=True.