TRUNK-3949: Do not commit with validation errors
(cherry picked from commit 09948bb7ed94a67065175262570f1f132fe01ead)