[keyserver] fix fetching identity info
Summary: Task ENG-4890.
Test Plan: Make sure result coincide with database content.
Reviewers: bartek, michal, varun
Reviewed By: michal, varun
Subscribers: ashoat, tomek
Differential Revision: https://phab.comm.dev/D9125