convert: make apply_filter() adhere to standard Git error handling