fix registering service with empty domain in binary rpc server