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

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