Fix validation error reporting for TW2 with nested layouts