Extension of part "PdfHeaderChecker" and "PdfUtilities" to avoid program crashes.

Simplified some if/else-conditions and get rid of some try/catch-parts.
Merge branch 'master' of https://github.com/friesey/PdfEventPrep