pv: safety check for PAI header parsed structure

- reported by Igor Potjevlesch