Blank stationIDs being sent to SD were due to stations in channel table having visible=1 but no xmltvid's. Probably due to scan.