use protocol used for loading page

Nominatim supports HTTPS. So it would make sense to use HTTPS instead of HTTP when the plugin is used on a page which is served over HTTPS.