Improve waitsForPromise.

Several TextureAtlas specs fail as a result of this change.  Previously
some of their test code wasn't being executed.  Now that it is, that code
is failing.