only set the href if it's defined
release 1.0.8