AGPUSH-862: workaround for window.location.origin missing on IE (until keycloak.js is fixed)

https://issues.jboss.org/browse/AGPUSH-862

We may either leverage this workaround or wait for keycloak.js fix (beta-4?)
https://github.com/keycloak/keycloak/pull/563