Fix logic error in DQM/EcalEndcapMonitorModule