72X - fix `HadronAndPartonSelector` for unknown generators

A possibly invalid handle in the `HadronAndPartonSelector` is not dereferenced any more, before its validity has been checked.