Bug 1252256, part 12 - Don't call continueTest if we're not expecting any more async handler calls. r=masayuki
This makes the sync dispatchEvent() call work properly, and also makes
the case where there are too many async events work better