Fix for ad iframe race condition.