fixed a bug for inserting links

There was a bug when you add a custom link it wouldn't work since it
didn't have "xpath=" it just had //@href... So the query would return an
error