Fix two test cases for WebMessaging message clone

Logic errors in the code. FF and IE will pass after the fix.
Merge pull request #1422 from siusin/siusin/webmessaging-withport-010-fix

Fix two test cases for WebMessaging message clone