Check that the rpc server is not nil, return error if so