add a safe-guard against bad input

do not write empty original_edge_data_vector to file
Merge pull request #1058 from alex85k/patch-4

add a safe-guard against bad input