fix Gerrit settings test button for anonymous users

- query needs to be executed in order to get any possible HTTP error