Fix bug where record was being wiped on field parsing error