Updated to only produce TPM header if the package info is complete