handle undefined href attribute

```html
<a href class="nolink">anchor</a>
```