Fixing bug where directive adds null to href.