error on ie9comp, ie8 and older: "Unable to get value of the property 'substring': object is null"
the object is the url.