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

Fixes #751

In the process of fixing this, I saw that there were two tests with the key `HTMLAnchorElement18`. Since the second one was preventing the first one from being run, I took the liberty of renaming it.