fix crashes when no Hcal or Ecal present