Clean up detId2denseIdHT in HcalTopology.cc

Various clean ups:
    * Adding braces for if/else
    * Adding const to variables that are not changed
    * Adding additional comments
    * Adding an ieta check for Version 1 so that an invalid ieta always
      (for Version 1) returns -1.