app/testpmd: fix null pointer dereference