xprt: remove redundant null check