The fact that you can bungle WebRTC or SSL/TLS implementation doesn't make it useless for transport security. But of course
security building blocks never guarantee properties of
the entire system alone. Just like using AES doesn't make or break your security.