Bug 826807: Clean up JSAPI error handling in PeerConnection constraints r=bz