net/bnxt: fix accessing variable before null check