Better fix for relative URLs

An improvement to #2711 

cc @koke 
Maybe its poor naming? The important thing here is that we correctly point to the site's domain so either blogURL or permalink work. 
I think the only way this could be nil is if blogURL was malformed and we're trusting our APIs that it will not be.