Allow for missing href in anchors.

This fixes calling 'indexOf' on an undefined value when an anchor has no href.

Reading the spec, it sounds like hrefs are technically optional on anchor tags:

```
When the A element's href attribute is set...
```
http://www.w3.org/TR/html401/struct/links.html