Add Protection against Null-Pointers in HadronOriginClassifier.
During the new derivation production with release 25.0.8 (JIRA ticket), a bug was found in the HadronOriginClassifier package. The bug, which was discussed in this JIRA ticket, was caused by null-pointers. A check has been added to make sure the pointers are not null before trying to use them.