worker postMessage(1, null) should throw, undefined should not. Fixes #491
Check for TypeError
Merge pull request #1357 from zcorpan/fix-491

worker postMessage(1, null) should throw, undefined should not. Fixes #491; r=Ms2ger