Keep-alive crashes on HTTPS connections

When creating Keep-Alive connections via HTTPS module crashes with:

No such method 'native-descriptor' for invocant of type 'IO::Socket::SSL+{HTTP::UserAgent::Connection}'

This is due to calling .native-descriptor on IO::Socket::SSL socket connection (1, 2, 3).

Need to figure out how to fix it. Check connection type and call .native-descriptor only for legacy sockets?