fixed getters to be able to read from miniAOD (72x)

Forward port of #4431 to 72x as requested by @monttj

Bugifix ghanging only pat::Tau accessors. No change in physics output expected. Relevant when reading pat::Taus from miniAOD