Fix preference retrieval

To access API, need to use Gerrit.get() in GWT and self.restApi.get()
in polygerrit.

Change-Id: Iafdc057c2d824a9da07d1f3e1512347a4adc65d9
1 file changed