Fix possible coredump with fast-import --import-marks