Fix support for some scenarios in DQM harvesting

The AlCa scenario dqmHarvesting function is broken in CMSSW,
apply a workaround the error.