[CB-5219] weinre disconnects when history.replaceState is used
Merge branch 'CB-5219' of https://github.com/sgrebnov/cordova-wp8
apply CB-5219 to WP7 also