net/i40e/base: avoid potential null pointer dereference