when intercept click event of a, not check if href is null, then error occurs when get hash
Merge pull request #17 from Garnel/master

截获点击事件时，如果a标签的href属性没有设置，获取到的是null，在执行replace时出错