Workaround postMessage bugs on IE.