Allow references that are missing href.
Merge pull request #310 from tobie/fix-refs

Allow references that are missing href.