In reply to Robert Dall.

You can resolve this issue by modifying the ssl_srcset() function so it only makes the changes under an SSL connection.

Wrap the foreach() block in this conditional: if (is_ssl()) { }