Bug 940217 - Fix error report about StopIteration promise (r=Yoric)