NDPI: prevent potential NPE when checking the type
Merge pull request #463 from melissalinkert/ndpi-npe

NDPI: prevent potential NPE when checking the type