net/cxgbe: fix possible null pointer dereference