app/testpmd: fix crash when portmask is specified