add a safe-guard against bad input

do not write empty original_edge_data_vector to file