Work around Firefox beta/canary worker transferable object bug.

This addresses issue #408.