Fix missing values in train and pulse ids extracted from run_data.
Previously the first detector module source was used to extract train and pulse id arrays, which potentially leads to missing values since some sources might be missing data for certain trains.