[lib][web][native] Refactor lastCommunicatedPlatformDetailsSelector
Summary: issue: https://linear.app/comm/issue/ENG-4999/refactor-lastcommunicatedplatformdetailsselector
Test Plan: tested that the selector works - it is still possible to call the server using callServerEndpoint.
Reviewers: michal, kamil, ginsu
Reviewed By: kamil
Subscribers: ashoat, tomek, wyilio
Differential Revision: https://phab.comm.dev/D9621