Fixes https issue for AJAX-loaded autocomplete.