Minor fixes that do not affect offline DQM

A bug was found in the online mode of ECAL DQM. The fix is relevant only for 7_1_X since that's the online release, but nevertheless making a PR to 7_3_X just to be in synch.