get_base_url: fix case when base href is empty (use response url instead)