During messaging_service object creation remove_rpc_client function may be called if prefer_local snitch setting is true. The caller does not provide host id, so _address_to_host_id_mapper is called to obtain it, but at this point the function is not initialized yet. The patch fixes the code to not call the function if not initialized. This is not the problem since during messaging_service creation there is no connection to drop. Fixes: #23353 Message-ID: <Z-J2KbBK8NoFNYZZ@scylladb.com>