fix Issue 13609 - better error message for missing '}'