This should fix this crashes that sometimes happen with the BDT qg tagger.
+ remove unused variables
@bnachman @woodsn @kfiekas @meehan @dguest @sschramm
adding a few people who may be interested @aoneill @yanlin @asteinhe