Wrap unavailable postMessage in try