fix($browser): remove base href domain when url begins with '//'

This change prevents an incorrect appBase url from being calculated when the
<base> href's domain begins with '//'.

Related to #5292, tangentially.

I don't know for sure if this is the correct behaviour, but it doesn't seem
totally unreasonable.