Fix bug trying to access errors before throwing SaveException