Fix for no EPG data in CheckOrUpdateTimeShiftPosition()
Some code refactoring