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 '//'.

Closes #5606