Make validity checks in GEN-SIM step for HGCAL
Ignore bad DetId
Merge pull request #4203 from bsunanda/Phase2-hgx13

Phase2 hgx13