Pass loading.gif through set_url_scheme() to it respects https. #2902