Fix HTMLAnchorElement.pathname == '' rather than null when empty path