Fixed empty location.href for IE11