adding undefined check to hrefEmpty
Merge remote-tracking branch 'origin/master'