Do not discard key for validation error when converting to error map

We're not correctly converting the validation error list to the validation error map, and this fixes that.