Bug 1078378 - tests failing on test-content-worker

- Replace the array instance used by `emitSync` with one from the content's sandbox
Merge pull request #1672 from ZER0/fail-content-worker/1078378

fix Bug 1078378 - tests failing on test-content-worker r=@mossop