filewriter: Don't test tuple_get_int() == 0; it returns -1.