Fix tertiary request bug in /publickeys/query