handle undefined href attribute
Merge pull request #6 from szepeviktor/patch-1

handle undefined href attribute
Fixes #5