if someone called window.postMessage(null) then the pmxdr client would generate an error