[EpgSelection] cleanup some code, and stop possible BSOD.