[libc] Properly handle null handles in rpc_dispatch.h

Summary:
We autuomatically dereference pointers, we should check if these are
null. Minimal change made by just keeping it zero and handling zero.
GitOrigin-RevId: e1feac36249c2aa964f9e198df7957868acb559a
2 files changed