Similar 'if href is None' logic here too as above.