Fixed a problem in the rtcomm.js related to state of the WebRTC