handle undefined href attribute