Issue #1105520 by franz: Fixed validation errors returned by the validate hook are incorrectly merged.