mpegtsdemux: avoid NULL manipulation if invalid input