bundled_pjproject: Improve SSL/TLS error handling