It's always safe to emit a Flush even if one has already been emitted, so long as the Flush has something other than a Flush as its child.
Created attachment 128401 [details] the patch
Landed in http://trac.webkit.org/changeset/108652