Fix export_marks() error handling.