net/bnxt: fix a potential null pointer dereference