KEYCLOAK-94: Move location change to happen only after Realm.query happe...

...ns, so it has the data already in place when trying to load it.