Delete the correct entry in case of error. Fixes a segfault when the faulty data is of type string and not the last field of the input...