Do not change object.errors when checking for errors (closes #10612)