Fixes crash on non HTTPS sites.